diff options
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -88,7 +88,7 @@ struct Client { | |||
| 88 | int basew, baseh, incw, inch, maxw, maxh, minw, minh; | 88 | int basew, baseh, incw, inch, maxw, maxh, minw, minh; |
| 89 | int bw, oldbw; | 89 | int bw, oldbw; |
| 90 | unsigned int tags; | 90 | unsigned int tags; |
| 91 | Bool isfixed, isfloating, isurgent, neverfocus, oldstate; | 91 | Bool isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen; |
| 92 | Client *next; | 92 | Client *next; |
| 93 | Client *snext; | 93 | Client *snext; |
| 94 | Monitor *mon; | 94 | Monitor *mon; |
| @@ -532,6 +532,7 @@ clientmessage(XEvent *e) { | |||
| 532 | if(cme->data.l[0]) { | 532 | if(cme->data.l[0]) { |
| 533 | XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32, | 533 | XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32, |
| 534 | PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1); | 534 | PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1); |
| 535 | c->isfullscreen = True; | ||
| 535 | c->oldstate = c->isfloating; | 536 | c->oldstate = c->isfloating; |
| 536 | c->oldbw = c->bw; | 537 | c->oldbw = c->bw; |
| 537 | c->bw = 0; | 538 | c->bw = 0; |
| @@ -542,6 +543,7 @@ clientmessage(XEvent *e) { | |||
| 542 | else { | 543 | else { |
| 543 | XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32, | 544 | XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32, |
| 544 | PropModeReplace, (unsigned char*)0, 0); | 545 | PropModeReplace, (unsigned char*)0, 0); |
| 546 | c->isfullscreen = False; | ||
| 545 | c->isfloating = c->oldstate; | 547 | c->isfloating = c->oldstate; |
| 546 | c->bw = c->oldbw; | 548 | c->bw = c->oldbw; |
| 547 | c->x = c->oldx; | 549 | c->x = c->oldx; |
| @@ -1584,7 +1586,7 @@ showhide(Client *c) { | |||
| 1584 | return; | 1586 | return; |
| 1585 | if(ISVISIBLE(c)) { /* show clients top down */ | 1587 | if(ISVISIBLE(c)) { /* show clients top down */ |
| 1586 | XMoveWindow(dpy, c->win, c->x, c->y); | 1588 | XMoveWindow(dpy, c->win, c->x, c->y); |
| 1587 | if(!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) | 1589 | if((!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) && !c->isfullscreen) |
| 1588 | resize(c, c->x, c->y, c->w, c->h, False); | 1590 | resize(c, c->x, c->y, c->w, c->h, False); |
| 1589 | showhide(c->snext); | 1591 | showhide(c->snext); |
| 1590 | } | 1592 | } |
