From f2afa7aa6c8c7efe5e3be726b1aee977d5fd1e04 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Wed, 18 Mar 2015 14:51:05 -0700 Subject: [PATCH] mutter: don't show the resize popup for 2 x 2 size increments In a HiDPI environment, all gtk+ apps will report a 2 x 2 size increment to avoid odd size. But that does not mean they are resizing in cells like terminals, so they resize popup should not be shown. Ideally, we should ignore <= scale x scale increments, but in practice scale is 1 or 2, and even in a lo-dpi setting a 2 x 2 increment makes little sense so let's keep the patch simple. https://bugzilla.gnome.org/show_bug.cgi?id=746420 --- src/x11/window-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c index b6e56216b..35d9c7a63 100644 --- a/src/x11/window-x11.c +++ b/src/x11/window-x11.c @@ -863,7 +863,7 @@ meta_window_x11_grab_op_began (MetaWindow *window, if (window->sync_request_counter != None) meta_window_x11_create_sync_request_alarm (window); - if (window->size_hints.width_inc > 1 || window->size_hints.height_inc > 1) + if (window->size_hints.width_inc > 2 || window->size_hints.height_inc > 2) { priv->showing_resize_popup = TRUE; meta_window_refresh_resize_popup (window);