let windows move themselves off the screen somewhat, but don't let them resize themselves off the screen (unless they're moving too)
This commit is contained in:
parent
49dd40d99f
commit
3f7ad89510
1 changed files with 6 additions and 1 deletions
|
@ -858,8 +858,13 @@ static void event_handle_client(ObClient *client, XEvent *e)
|
|||
client->frame->size.left + client->frame->size.right;
|
||||
gint fh = h +
|
||||
client->frame->size.top + client->frame->size.bottom;
|
||||
/* make this rude for size-only changes but not for position
|
||||
changes.. */
|
||||
gboolean moving = ((e->xconfigurerequest.value_mask & CWX) ||
|
||||
(e->xconfigurerequest.value_mask & CWY));
|
||||
|
||||
client_find_onscreen(client, &newx, &newy, fw, fh,
|
||||
FALSE);
|
||||
!moving);
|
||||
if (e->xconfigurerequest.value_mask & CWX)
|
||||
x = newx;
|
||||
if (e->xconfigurerequest.value_mask & CWY)
|
||||
|
|
Loading…
Reference in a new issue