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:00:39 +0300
commit3d521fb54e18ba0b414e9a0b1fab21bf14afea99 (patch)
tree477e95403372a96816c5c5b5560e4d5a7afd638c
parente269d38465b0bff339145089031df337e18bd9ee (diff)
downloadmetacity-3d521fb54e18ba0b414e9a0b1fab21bf14afea99.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 adb2f4d4..f490ba89 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -8048,8 +8048,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);