set fullscreen and max positions properly for all gravities
This commit is contained in:
parent
695520283d
commit
8fbc68d46d
1 changed files with 8 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue