[wiki] [sites] [dwm] update fakefullscreen patch to latest master || Jan Hendrik Farr

From: <git_AT_suckless.org>
Date: Mon, 08 May 2017 23:51:38 +0200

commit d22d24513bef95556a09e6a53c870d434c19338c
Author: Jan Hendrik Farr <janhendrik.farr_AT_gmail.com>
Date: Mon May 8 23:50:10 2017 +0200

    [dwm] update fakefullscreen patch to latest master

diff --git a/dwm.suckless.org/patches/dwm-fakefullscreen-20170425-5b238c8.diff b/dwm.suckless.org/patches/dwm-fakefullscreen-20170425-5b238c8.diff
deleted file mode 100644
index f056b4d..0000000
--- a/dwm.suckless.org/patches/dwm-fakefullscreen-20170425-5b238c8.diff
+++ /dev/null
_AT_@ -1,94 +0,0 @@
-diff --git a/dwm.c b/dwm.c
-index 7861512..d52a1bf 100644
---- a/dwm.c
-+++ b/dwm.c
-_AT_@ -521,8 +521,8 @@ clientmessage(XEvent *e)
- if (cme->message_type == netatom[NetWMState]) {
- if (cme->data.l[1] == netatom[NetWMFullscreen]
- || cme->data.l[2] == netatom[NetWMFullscreen])
-- setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD */
-- || (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */ && !c->isfullscreen)));
-+ setfullscreen(c, cme->data.l[0] == 1 /* _NET_WM_STATE_ADD */
-+ || (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */));
- } else if (cme->message_type == netatom[NetActiveWindow]) {
- if (c != selmon->sel && !c->isurgent)
- seturgent(c, 1);
-_AT_@ -552,7 +552,6 @@ void
- configurenotify(XEvent *e)
- {
- Monitor *m;
-- Client *c;
- XConfigureEvent *ev = &e->xconfigure;
- int dirty;
-
-_AT_@ -565,9 +564,6 @@ configurenotify(XEvent *e)
- drw_resize(drw, sw, bh);
- updatebars();
- for (m = mons; m; m = m->next) {
-- for (c = m->clients; c; c = c->next)
-- if (c->isfullscreen)
-- resizeclient(c, m->mx, m->my, m->mw, m->mh);
- XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
- }
- focus(NULL);
-_AT_@ -1145,8 +1141,6 @@ movemouse(const Arg *arg)
-
- if (!(c = selmon->sel))
- return;
-- if (c->isfullscreen) /* no support moving fullscreen windows by mouse */
-- return;
- restack(selmon);
- ocx = c->x;
- ocy = c->y;
-_AT_@ -1300,8 +1294,6 @@ resizemouse(const Arg *arg)
-
- if (!(c = selmon->sel))
- return;
-- if (c->isfullscreen) /* no support resizing fullscreen windows by mouse */
-- return;
- restack(selmon);
- ocx = c->x;
- ocy = c->y;
-_AT_@ -1478,24 +1470,10 @@ 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;
-- c->w = c->oldw;
-- c->h = c->oldh;
-- resizeclient(c, c->x, c->y, c->w, c->h);
-- arrange(c->mon);
- }
- }
-
-_AT_@ -1620,7 +1598,7 @@ showhide(Client *c)
- if (ISVISIBLE(c)) {
- /* show clients top down */
- XMoveWindow(dpy, c->win, c->x, c->y);
-- if ((!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) && !c->isfullscreen)
-+ if (!c->mon->lt[c->mon->sellt]->arrange || c->isfloating)
- resize(c, c->x, c->y, c->w, c->h, 0);
- showhide(c->snext);
- } else {
-_AT_@ -1712,8 +1690,6 @@ togglefloating(const Arg *arg)
- {
- if (!selmon->sel)
- return;
-- if (selmon->sel->isfullscreen) /* no support for fullscreen windows */
-- return;
- selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed;
- if (selmon->sel->isfloating)
- resize(selmon->sel, selmon->sel->x, selmon->sel->y,
diff --git a/dwm.suckless.org/patches/dwm-fakefullscreen-20170508-ceac8c9.diff b/dwm.suckless.org/patches/dwm-fakefullscreen-20170508-ceac8c9.diff
new file mode 100644
index 0000000..0c15db4
--- /dev/null
+++ b/dwm.suckless.org/patches/dwm-fakefullscreen-20170508-ceac8c9.diff
_AT_@ -0,0 +1,92 @@
+diff --git a/dwm.c b/dwm.c
+index a5ce993..42d2049 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -522,7 +522,7 @@ clientmessage(XEvent *e)
+ if (cme->data.l[1] == netatom[NetWMFullscreen]
+ || cme->data.l[2] == netatom[NetWMFullscreen])
+ setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD */
+- || (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */ && !c->isfullscreen)));
++ || cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */));
+ } else if (cme->message_type == netatom[NetActiveWindow]) {
+ if (c != selmon->sel && !c->isurgent)
+ seturgent(c, 1);
+_AT_@ -552,7 +552,6 @@ void
+ configurenotify(XEvent *e)
+ {
+ Monitor *m;
+- Client *c;
+ XConfigureEvent *ev = &e->xconfigure;
+ int dirty;
+
+_AT_@ -565,9 +564,6 @@ configurenotify(XEvent *e)
+ drw_resize(drw, sw, bh);
+ updatebars();
+ for (m = mons; m; m = m->next) {
+- for (c = m->clients; c; c = c->next)
+- if (c->isfullscreen)
+- resizeclient(c, m->mx, m->my, m->mw, m->mh);
+ XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
+ }
+ focus(NULL);
+_AT_@ -1145,8 +1141,6 @@ movemouse(const Arg *arg)
+
+ if (!(c = selmon->sel))
+ return;
+- if (c->isfullscreen) /* no support moving fullscreen windows by mouse */
+- return;
+ restack(selmon);
+ ocx = c->x;
+ ocy = c->y;
+_AT_@ -1300,8 +1294,6 @@ resizemouse(const Arg *arg)
+
+ if (!(c = selmon->sel))
+ return;
+- if (c->isfullscreen) /* no support resizing fullscreen windows by mouse */
+- return;
+ restack(selmon);
+ ocx = c->x;
+ ocy = c->y;
+_AT_@ -1478,24 +1470,10 @@ 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;
+- c->w = c->oldw;
+- c->h = c->oldh;
+- resizeclient(c, c->x, c->y, c->w, c->h);
+- arrange(c->mon);
+ }
+ }
+
+_AT_@ -1620,7 +1598,7 @@ showhide(Client *c)
+ if (ISVISIBLE(c)) {
+ /* show clients top down */
+ XMoveWindow(dpy, c->win, c->x, c->y);
+- if ((!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) && !c->isfullscreen)
++ if (!c->mon->lt[c->mon->sellt]->arrange || c->isfloating)
+ resize(c, c->x, c->y, c->w, c->h, 0);
+ showhide(c->snext);
+ } else {
+_AT_@ -1712,8 +1690,6 @@ togglefloating(const Arg *arg)
+ {
+ if (!selmon->sel)
+ return;
+- if (selmon->sel->isfullscreen) /* no support for fullscreen windows */
+- return;
+ selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed;
+ if (selmon->sel->isfloating)
+ resize(selmon->sel, selmon->sel->x, selmon->sel->y,
diff --git a/dwm.suckless.org/patches/fakefullscreen.md b/dwm.suckless.org/patches/fakefullscreen.md
index e349838..f95d821 100644
--- a/dwm.suckless.org/patches/fakefullscreen.md
+++ b/dwm.suckless.org/patches/fakefullscreen.md
_AT_@ -9,7 +9,7 @@ Only allow clients to "fullscreen" into space currently given to them. As an exa
 Download
 --------
 
-* [dwm-fakefullscreen-20170425-5b238c8.diff](dwm-fakefullscreen-20170425-5b238c8.diff)
+* [dwm-fakefullscreen-20170508-ceac8c9.diff](dwm-fakefullscreen-20170508-ceac8c9.diff)
 
 Author
 ------
Received on Mon May 08 2017 - 23:51:38 CEST

This archive was generated by hypermail 2.3.0 : Tue May 09 2017 - 00:00:44 CEST