diff options
| author | bakkeby <[email protected]> | 2020-09-28 14:39:17 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-09-28 14:39:17 +0200 |
| commit | 8726ae0aa94f711887cd25bc8c159f8027d59839 (patch) | |
| tree | 002e4c2eddfdf86de0989ed5f83478e9c6afa76e /patch | |
| parent | 8536aa52c4146a63adcdd7a67cd381d39efb9770 (diff) | |
| download | dwm-flexipatch-8726ae0aa94f711887cd25bc8c159f8027d59839.tar.gz dwm-flexipatch-8726ae0aa94f711887cd25bc8c159f8027d59839.zip | |
Adding _IS_FLOATING xproperty patch for floating windows ref. #50
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/bar_ewmhtags.c | 8 | ||||
| -rw-r--r-- | patch/bar_ewmhtags.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/patch/bar_ewmhtags.c b/patch/bar_ewmhtags.c index ee17ac6..99774c9 100644 --- a/patch/bar_ewmhtags.c +++ b/patch/bar_ewmhtags.c @@ -18,6 +18,14 @@ setdesktopnames(void) } void +setfloatinghint(Client *c) +{ + Atom target = XInternAtom(dpy, "_IS_FLOATING", 0); + unsigned int floating[1] = {c->isfloating}; + XChangeProperty(dpy, c->win, target, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)floating, 1); +} + +void setnumdesktops(void) { long data[] = { NUMTAGS }; diff --git a/patch/bar_ewmhtags.h b/patch/bar_ewmhtags.h index 937f1f6..959ab75 100644 --- a/patch/bar_ewmhtags.h +++ b/patch/bar_ewmhtags.h @@ -1,5 +1,6 @@ static void setcurrentdesktop(void); static void setdesktopnames(void); +static void setfloatinghint(Client *c); static void setnumdesktops(void); static void setviewport(void); static void updatecurrentdesktop(void);
\ No newline at end of file |
