applied Jack's mplayer fullscreen patch
c14d293e
1 file(s) · +4 −2
| 88 | 88 | int basew, baseh, incw, inch, maxw, maxh, minw, minh; |
|
| 89 | 89 | int bw, oldbw; |
|
| 90 | 90 | unsigned int tags; |
|
| 91 | - | Bool isfixed, isfloating, isurgent, neverfocus, oldstate; |
|
| 91 | + | Bool isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen; |
|
| 92 | 92 | Client *next; |
|
| 93 | 93 | Client *snext; |
|
| 94 | 94 | Monitor *mon; |
|
| 532 | 532 | if(cme->data.l[0]) { |
|
| 533 | 533 | XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32, |
|
| 534 | 534 | PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1); |
|
| 535 | + | c->isfullscreen = True; |
|
| 535 | 536 | c->oldstate = c->isfloating; |
|
| 536 | 537 | c->oldbw = c->bw; |
|
| 537 | 538 | c->bw = 0; |
|
| 542 | 543 | else { |
|
| 543 | 544 | XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32, |
|
| 544 | 545 | PropModeReplace, (unsigned char*)0, 0); |
|
| 546 | + | c->isfullscreen = False; |
|
| 545 | 547 | c->isfloating = c->oldstate; |
|
| 546 | 548 | c->bw = c->oldbw; |
|
| 547 | 549 | c->x = c->oldx; |
|
| 1584 | 1586 | return; |
|
| 1585 | 1587 | if(ISVISIBLE(c)) { /* show clients top down */ |
|
| 1586 | 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 | 1590 | resize(c, c->x, c->y, c->w, c->h, False); |
|
| 1589 | 1591 | showhide(c->snext); |
|
| 1590 | 1592 | } |
|