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 18:57:03 +0300
commitd43837aafb5e2156c864820ee6cd5801d041e81f (patch)
tree8cc8160ce5510fb4b075448004ad0042a719db95
parent1f0212d9d91c4cf588ec7c4fe968c72ea8152978 (diff)
downloadmetacity-d43837aafb5e2156c864820ee6cd5801d041e81f.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 690d67a4..d6d3d416 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);
}