summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Campagna <scampa.giovanni@gmail.com>2015-03-18 14:51:05 -0700
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-07-07 19:02:38 +0300
commitcf77442d3d6749fad9fe38e5848fafc165f52505 (patch)
treec5f3c0ab80ca07b914260bc74f118be27b1189e8
parent4b5175ff8ab044abc8635d3778364dd6001dcf8e (diff)
downloadmetacity-cf77442d3d6749fad9fe38e5848fafc165f52505.tar.gz
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
-rw-r--r--src/core/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/window.c b/src/core/window.c
index 2b79df92..8f133641 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,
window->screen->number);