diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-31 07:22:19 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-31 07:22:19 +0000 |
| commit | 8fbc68d46dc6bf99162daee24b72355293f561c6 (patch) | |
| tree | c083a887b916f923f5942d56892fca189a1ba869 /openbox/client.c | |
| parent | 695520283d72eaca94b2016cbe1f3bb3f39c7f1b (diff) | |
set fullscreen and max positions properly for all gravities
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openbox/client.c b/openbox/client.c index 95d1e97e..6830ab73 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1316,6 +1316,11 @@ void client_configure(Client *self, Corner anchor, int x, int y, int w, int h, { 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; @@ -1335,6 +1340,9 @@ void client_configure(Client *self, Corner anchor, int x, int y, int w, int h, } } + /* 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) { if (!(self->functions & Func_Move)) { |
