set fullscreen and max positions properly for all gravities
Dana Jansens danakj@orodu.net
1 files changed,
8 insertions(+),
0 deletions(-)
jump to
M
openbox/client.c
→
openbox/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) {