[hackers] [dwm] rm fullscreen floating || Daniel Cousens

From: <git_AT_suckless.org>
Date: Wed, 11 Oct 2017 09:19:32 +0200 (CEST)

commit f1911b05d197fc047efbdeb28e727f4d6075e7f1
Author: Daniel Cousens <github_AT_dcousens.com>
AuthorDate: Wed Oct 11 08:01:20 2017 +1100
Commit: Daniel Cousens <github_AT_dcousens.com>
CommitDate: Wed Oct 11 08:01:23 2017 +1100

    rm fullscreen floating

diff --git a/dwm.c b/dwm.c
index 55ed9a1..e30e37d 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -93,7 +93,7 @@ struct Client {
         int basew, baseh, incw, inch, maxw, maxh, minw, minh;
         int bw, oldbw;
         unsigned int tags;
- int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen;
+ int isfixed, isfloating, isurgent, neverfocus, isfullscreen;
         Client *next;
         Client *snext;
         Monitor *mon;
_AT_@ -1036,7 +1036,7 @@ manage(Window w, XWindowAttributes *wa)
         XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask);
         grabbuttons(c, 0);
         if (!c->isfloating)
- c->isfloating = c->oldstate = trans != None || c->isfixed;
+ c->isfloating = trans != None || c->isfixed;
         if (c->isfloating)
                 XRaiseWindow(dpy, c->win);
         if (c->isfloating && c->x == 0 && c->y == (c->mon->showbar ? bh : 0)) {
_AT_@ -1462,17 +1462,14 @@ setfullscreen(Client *c, int fullscreen)
                 XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32,
                         PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
                 c->isfullscreen = 1;
- c->oldstate = c->isfloating;
                 c->oldbw = c->bw;
                 c->bw = 0;
- c->isfloating = 1;
                 resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh);
                 XRaiseWindow(dpy, c->win);
         } else if (!fullscreen && c->isfullscreen){
                 XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32,
                         PropModeReplace, (unsigned char*)0, 0);
                 c->isfullscreen = 0;
- c->isfloating = c->oldstate;
                 c->bw = c->oldbw;
                 c->x = c->oldx;
                 c->y = c->oldy;
Received on Wed Oct 11 2017 - 09:19:32 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 11 2017 - 09:25:04 CEST