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:34:52 +0300
commitccedb2e969594f5a480e7a9ac8737b05d8898fe1 (patch)
treed3d1abeb4e597ef7890ec925529527ed86bb3dd1
parent6ecbbbbd0281179dffa10564d8e4083052c1f204 (diff)
downloadmetacity-ccedb2e969594f5a480e7a9ac8737b05d8898fe1.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 b65f32b0..1f4b575e 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2814,7 +2814,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;