diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-01-04 20:09:57 +0200 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2012-01-04 20:10:15 +0200 |
| commit | b8ff54b792b94c5388651ce30cd5bf67b78d3688 (patch) | |
| tree | 316495a390aab01e6e250cdcf2f77c030bfdc36d /monsterwm.c | |
| parent | 4bd473c2e1b8cd7a4425631a65888784c8e6613c (diff) | |
when window from stack gets fullscreen resize stack
Diffstat (limited to 'monsterwm.c')
| -rw-r--r-- | monsterwm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/monsterwm.c b/monsterwm.c index 7fa8dc9..073c913 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -217,7 +217,7 @@ void clientmessage(XEvent *e) { != netatoms[NET_FULLSCREEN] && (unsigned)e->xclient.data.l[2] != netatoms[NET_FULLSCREEN])) return; setfullscreen(c, (e->xclient.data.l[0] == 1 || (e->xclient.data.l[0] == 2 && !c->isfullscreen))); if (c->isfullscreen) XMoveResizeWindow(dis, c->win, 0, 0, ww + BORDER_WIDTH, wh + BORDER_WIDTH + PANEL_HEIGHT); - else tile(); + tile(); update_current(); } @@ -631,8 +631,8 @@ void tile(void) { int cx = 0, cy = (TOP_PANEL && showpanel ? PANEL_HEIGHT : 0), cw = 0, ch = 0; client *c; - for (n=0, c=head->next; c; c=c->next) if (!c->istransient) ++n; /* count windows on stack */ - if ((mode == TILE || mode == BSTACK) && n > 1) { /* adjust to match screen height/width */ + for (n=0, c=head->next; c; c=c->next) if (!c->istransient && !c->isfullscreen) ++n; + if ((mode == TILE || mode == BSTACK) && n > 1) { /* adjust to match screen height/width */ d = (z - growth)%n + growth; z = (z - growth)/n; } |
