summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2011-08-16 01:15:33 -0400
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-01-20 19:53:22 +0200
commit6294a8ac66e737cc8dcfbb6aea3a94677e9556a9 (patch)
treea74f2cd44b2807d2b7ebf951c26f83a2c81708bd
parent6836a62148e47d1a7009561704b1f7332a8470c7 (diff)
downloadmetacity-6294a8ac66e737cc8dcfbb6aea3a94677e9556a9.tar.gz
Disable top resizing for attached modal dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=656619
-rw-r--r--src/ui/frames.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 5e90a03b..b4a5e2c3 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2740,6 +2740,7 @@ get_control (MetaFrames *frames,
{
MetaFrameGeometry fgeom;
MetaFrameFlags flags;
+ MetaFrameType type;
gboolean has_vert, has_horiz;
GdkRectangle client;
@@ -2763,6 +2764,7 @@ get_control (MetaFrames *frames,
meta_core_get (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), frame->xwindow,
META_CORE_GET_FRAME_FLAGS, &flags,
+ META_CORE_GET_FRAME_TYPE, &type,
META_CORE_GET_END);
has_vert = (flags & META_FRAME_ALLOWS_VERTICAL_RESIZE) != 0;
@@ -2770,7 +2772,7 @@ get_control (MetaFrames *frames,
if (POINT_IN_RECT (x, y, fgeom.title_rect))
{
- if (has_vert && y <= TOP_RESIZE_HEIGHT)
+ if (has_vert && y <= TOP_RESIZE_HEIGHT && (type != META_FRAME_TYPE_ATTACHED))
return META_FRAME_CONTROL_RESIZE_N;
else
return META_FRAME_CONTROL_TITLE;