projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8758271
)
lock the position/size of maximized windows
author
Dana Jansens
<danakj@orodu.net>
Thu, 20 Mar 2003 21:09:56 +0000
(21:09 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 20 Mar 2003 21:09:56 +0000
(21:09 +0000)
openbox/client.c
patch
|
blob
|
history
diff --git
a/openbox/client.c
b/openbox/client.c
index 3100993b2747c909e865b3147e84cd9d92adc502..df3ea84f55b60b10aac72da7367c06e1985ec37b 100644
(file)
--- a/
openbox/client.c
+++ b/
openbox/client.c
@@
-1281,6
+1281,16
@@
void client_configure(Client *self, Corner anchor, int x, int y, int w, int h,
{
gboolean moved = FALSE, resized = FALSE;
+ /* lock if maximized */
+ if (self->max_horz) {
+ x = self->area.x;
+ w = self->area.width;
+ }
+ if (self->max_vert) {
+ y = self->area.y;
+ h = self->area.height;
+ }
+
w -= self->base_size.width;
h -= self->base_size.height;