summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-22 17:59:27 +0000
committerDana Jansens <danakj@orodu.net>2007-05-22 17:59:27 +0000
commit49c7c0305b6662b9d0da51c5eaac4318b8bc987c (patch)
treec570b88cbd817874315e3723cb59aa11df1d5d3e /openbox
parent8262e1ba669cb8959734892d2657653766f5cc7e (diff)
along with r6753, when window is maximized make the borders count as titlebar context not the top/tl/tr contexts
Diffstat (limited to 'openbox')
-rw-r--r--openbox/frame.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/frame.c b/openbox/frame.c
index 96e93ba0..ba452166 100644
--- a/openbox/frame.c
+++ b/openbox/frame.c
@@ -1207,7 +1207,7 @@ ObFrameContext frame_context(ObClient *client, Window win, gint x, gint y)
is fully maximized, then treat it like they clicked in the
button that is there */
if (self->max_horz && self->max_vert &&
- (win == self->title ||
+ (win == self->title || win == self->titletop ||
win == self->titleleft || win == self->titletopleft ||
win == self->titleright || win == self->titletopright))
{
@@ -1223,6 +1223,9 @@ ObFrameContext frame_context(ObClient *client, Window win, gint x, gint y)
/* title is a border width in from the edge */
if (win == self->title)
fx += self->bwidth;
+ /* titletop is a bit to the right */
+ else if (win == self->titletop)
+ fx += ob_rr_theme->grip_width + self->bwidth;
/* titletopright is way to the right edge */
else if (win == self->titletopright)
fx += self->area.width - (ob_rr_theme->grip_width + self->bwidth);