diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-21 23:56:07 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-21 23:56:07 +0000 |
| commit | b8f207892a11b53365c47b4828254269fca5c8e9 (patch) | |
| tree | 50dc4de5f35f7a1e0c275ef49b63941ad6749688 /openbox/client.c | |
| parent | cce3fed748bd2f68522cf76954c62d8f61bb5946 (diff) | |
some repositioning of frame elements for maximized windows.
fix clicking on borders not counting as the button in that corner for full max windows
disable the resize cursors for full max windows
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c index e4804bcc..da38843b 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -2740,6 +2740,7 @@ void client_configure(ObClient *self, gint x, gint y, gint w, gint h, gboolean fmoved, fresized; guint fdecor = self->frame->decorations; gboolean fhorz = self->frame->max_horz; + gboolean fvert = self->frame->max_vert; gint logicalw, logicalh; /* find the new x, y, width, and height (and logical size) */ @@ -2775,8 +2776,11 @@ void client_configure(ObClient *self, gint x, gint y, gint w, gint h, /* find the frame's dimensions and move/resize it */ fmoved = moved; fresized = resized; - if (self->decorations != fdecor || self->max_horz != fhorz) + if (self->decorations != fdecor || + self->max_horz != fhorz || self->max_vert != fvert) + { fmoved = fresized = TRUE; + } if (fmoved || fresized) frame_adjust_area(self->frame, fmoved, fresized, FALSE); |
