diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-03-01 05:17:00 +0200 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-03-04 06:23:24 +0200 |
| commit | 9247f75b3f5616ce0e3ad9f362228849940e92be (patch) | |
| tree | 58992e3760af8b0aff40216c0a3c439f71c5e724 /monsterwm.c | |
| parent | b6a533ef47d75c2f945f333f87065589472b4830 (diff) | |
tile and update after changing fullscreen state
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/monsterwm.c b/monsterwm.c index e3dea3e..7d71f44 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -298,8 +298,6 @@ void clientmessage(XEvent *e) { && ((unsigned)e->xclient.data.l[1] == netatoms[NET_FULLSCREEN] || (unsigned)e->xclient.data.l[2] == netatoms[NET_FULLSCREEN])) setfullscreen(c, (e->xclient.data.l[0] == 1 || (e->xclient.data.l[0] == 2 && !c->isfullscrn))); - tile(); - update_current(c); } /* a configure request means that the window requested changes in its geometry @@ -316,8 +314,6 @@ void configurerequest(XEvent *e) { ev->y, ev->width, ev->height, ev->border_width, ev->above, ev->detail }); XSync(dis, False); } - tile(); - if (c && c == current) update_current(c); } /* close the window */ @@ -737,6 +733,8 @@ void setfullscreen(client *c, Bool fullscrn) { netatoms[NET_WM_STATE], XA_ATOM, 32, PropModeReplace, (unsigned char*) ((c->isfullscrn = fullscrn) ? &netatoms[NET_FULLSCREEN] : 0), fullscrn); if (c->isfullscrn) XMoveResizeWindow(dis, c->win, 0, 0, ww, wh + PANEL_HEIGHT); + tile(); + if (c && c == current) update_current(c); } /* set initial values |
