[metacity/wip/invisible-borders: 18/25] Disable top resizing for attached modal dialogs
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/wip/invisible-borders: 18/25] Disable top resizing for attached modal dialogs
- Date: Tue, 20 Jan 2015 13:14:04 +0000 (UTC)
commit fa57c8e57c205f8cbb9ade920a178a316d22f598
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Aug 16 01:15:33 2011 -0400
Disable top resizing for attached modal dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=656619
src/ui/frames.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 5e90a03..b4a5e2c 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]