all repos — openbox @ 8fbc68d46dc6bf99162daee24b72355293f561c6

openbox fork - make it a bit more like ryudo

set fullscreen and max positions properly for all gravities
Dana Jansens danakj@orodu.net
commit

8fbc68d46dc6bf99162daee24b72355293f561c6

parent

695520283d72eaca94b2016cbe1f3bb3f39c7f1b

1 files changed, 8 insertions(+), 0 deletions(-)

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

@@ -1316,6 +1316,11 @@ gboolean user, gboolean final)

{ gboolean moved = FALSE, resized = FALSE; + /* gets the frame's position */ + frame_client_gravity(self->frame, &x, &y); + + /* these positions are frame positions, not client positions */ + /* set the size and position if fullscreen */ if (self->fullscreen) { x = 0;

@@ -1334,6 +1339,9 @@ h = screen_area(self->desktop)->height -

self->frame->size.top - self->frame->size.bottom; } } + + /* gets the client's position */ + frame_frame_gravity(self->frame, &x, &y); /* these override the above states! if you cant move you can't move! */ if (user) {