[mutter] mutter: don't show the resize popup for 2 x 2 size increments
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] mutter: don't show the resize popup for 2 x 2 size increments
- Date: Tue, 20 Oct 2015 00:22:18 +0000 (UTC)
commit f2afa7aa6c8c7efe5e3be726b1aee977d5fd1e04
Author: Giovanni Campagna <scampa giovanni gmail com>
Date: Wed Mar 18 14:51:05 2015 -0700
mutter: 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/x11/window-x11.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c
index b6e5621..35d9c7a 100644
--- a/src/x11/window-x11.c
+++ b/src/x11/window-x11.c
@@ -863,7 +863,7 @@ meta_window_x11_grab_op_began (MetaWindow *window,
if (window->sync_request_counter != None)
meta_window_x11_create_sync_request_alarm (window);
- 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)
{
priv->showing_resize_popup = TRUE;
meta_window_refresh_resize_popup (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]