[metacity] don't show the resize popup for 2 x 2 size increments



commit d43837aafb5e2156c864820ee6cd5801d041e81f
Author: Giovanni Campagna <scampa giovanni gmail com>
Date:   Wed Mar 18 14:51:05 2015 -0700

    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/core/window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 690d67a..d6d3d41 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -8051,8 +8051,8 @@ meta_window_refresh_resize_popup (MetaWindow *window)
 
   if (window->display->grab_resize_popup == NULL)
     {
-      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)
         window->display->grab_resize_popup =
           meta_ui_resize_popup_new (window->display->xdisplay);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]