[metacity/gnome-3-18] don't show the resize popup for 2 x 2 size increments
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/gnome-3-18] don't show the resize popup for 2 x 2 size increments
- Date: Thu, 7 Jul 2016 16:01:46 +0000 (UTC)
commit 3d521fb54e18ba0b414e9a0b1fab21bf14afea99
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 adb2f4d..f490ba8 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]