summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-06-27 18:34:52 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2016-06-27 18:39:09 +0300
commitb00cbe1ace14c274d324a9a1d8904b11f1591b38 (patch)
treeab8fc8a87828f7eaa03ac8bb79a6f8a81d2b2ce6
parentc9e5014ae1fe662f23cbd60c59b0d2e5d34ce957 (diff)
downloadmetacity-b00cbe1ace14c274d324a9a1d8904b11f1591b38.tar.gz
frames: restore window resize using titlebar
https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/1596574
-rw-r--r--src/ui/frames.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index c0749c77..bd5044b9 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2591,7 +2591,7 @@ get_control (MetaFrames *frames,
if (POINT_IN_RECT (x, y, fgeom.title_rect))
{
- if (has_vert && y <= TOP_RESIZE_HEIGHT && has_north_resize)
+ if (has_vert && y <= (fgeom.borders.invisible.top + TOP_RESIZE_HEIGHT) && has_north_resize)
return META_FRAME_CONTROL_RESIZE_N;
else
return META_FRAME_CONTROL_TITLE;