all repos — openbox @ 7beec94a1fe6be46321a0172177136c501da9ba5

openbox fork - make it a bit more like ryudo

make sure windows which cant be moved or resized also can't be fullscreened
Dana Jansens danakj@orodu.net
commit

7beec94a1fe6be46321a0172177136c501da9ba5

parent

0d84c43d2a02acf5d2f0159e8cf54fe85f3755cc

1 files changed, 13 insertions(+), 1 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -794,7 +794,7 @@ }

/* can't maximize without moving/resizing */ if (!((self->functions & Func_Move) && (self->functions & Func_Resize))) - self->functions &= ~Func_Maximize; + self->functions &= ~(Func_Maximize | Func_Fullscreen); /* finally, user specified disabled decorations are applied to subtract decorations */

@@ -1304,6 +1304,18 @@ y = screen_area(self->desktop)->y;

h = screen_area(self->desktop)->y + screen_area(self->desktop)->height - self->frame->size.top - self->frame->size.bottom; + } + } + + /* these override the above states! if you cant move you can't move! */ + if (user) { + if (!(self->functions & Func_Move)) { + x = self->area.x; + y = self->area.y; + } + if (!(self->functions & Func_Resize)) { + w = self->area.width; + h = self->area.height; } }