From 13741f524e5f8b780a96872f534237186fa78741 Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 24 Oct 2014 12:52:46 +0200 Subject: Fix identification of CSD windows when checking whether to force fullscreen We try to exempt CSD windows from being forced fullscreen if they are undecorated and the size of the screen; however, we also catch almost all windows that *do* need to be forced fullscreen in this check, since they also have decorations turned off. Identify actual CSD windows by checking whether _GTK_FRAME_EXTENTS is set - GTK+ will always set this on CSD windows even if they have no invisible borders or shadows at the current time. Based on metacity commit: 41dd72bc5dd08d7d0cb136f694a6d9a30e38b341 From: Owen W. Taylor Metacity gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=723029 --- src/core/constraints.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/constraints.c') diff --git a/src/core/constraints.c b/src/core/constraints.c index 4ac73ac5..68cf5ae1 100644 --- a/src/core/constraints.c +++ b/src/core/constraints.c @@ -437,7 +437,7 @@ setup_constraint_info (ConstraintInfo *info, */ if (meta_prefs_get_force_fullscreen() && - window->decorated && + (window->decorated || !meta_window_is_client_decorated (window)) && meta_rectangle_equal (new, &xinerama_info->rect) && window->has_fullscreen_func && !window->fullscreen) -- cgit v1.2.1