|
|
|
@ -43,7 +43,7 @@ diff -ruN dwm-6.2-ori/config.def.h dwm-6.2/config.def.h
|
|
|
|
|
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
|
|
|
|
|
diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c
|
|
|
|
|
--- dwm-6.2-ori/dwm.c 2019-02-02 18:25:28.000000000 +0530
|
|
|
|
|
+++ dwm-6.2/dwm.c 2020-12-30 16:24:10.847012386 +0530
|
|
|
|
|
+++ dwm-6.2/dwm.c 2021-01-10 05:23:06.472038418 +0530
|
|
|
|
|
@@ -40,6 +40,7 @@
|
|
|
|
|
#include <X11/extensions/Xinerama.h>
|
|
|
|
|
#endif /* XINERAMA */
|
|
|
|
@ -277,28 +277,40 @@ diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c
|
|
|
|
|
cursor[CurResize] = drw_cur_create(drw, XC_sizing);
|
|
|
|
|
cursor[CurMove] = drw_cur_create(drw, XC_fleur);
|
|
|
|
|
/* init appearance */
|
|
|
|
|
@@ -1637,6 +1689,28 @@
|
|
|
|
|
@@ -1637,6 +1689,40 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
+sigdwmblocks(const Arg *arg)
|
|
|
|
|
+{
|
|
|
|
|
+ int fd;
|
|
|
|
|
+ static int fd = -1;
|
|
|
|
|
+ struct flock fl;
|
|
|
|
|
+ union sigval sv;
|
|
|
|
|
+
|
|
|
|
|
+ if (!dwmblockssig)
|
|
|
|
|
+ return;
|
|
|
|
|
+ sv.sival_int = (dwmblockssig << 8) | arg->i;
|
|
|
|
|
+ fd = open(DWMBLOCKSLOCKFILE, O_RDONLY);
|
|
|
|
|
+ if (fd == -1)
|
|
|
|
|
+ return;
|
|
|
|
|
+ fl.l_type = F_WRLCK;
|
|
|
|
|
+ fl.l_start = 0;
|
|
|
|
|
+ fl.l_whence = SEEK_SET;
|
|
|
|
|
+ fl.l_start = 0;
|
|
|
|
|
+ fl.l_len = 0;
|
|
|
|
|
+ if (fcntl(fd, F_GETLK, &fl) == -1 || fl.l_type == F_UNLCK)
|
|
|
|
|
+ return;
|
|
|
|
|
+ if (fd == -1) {
|
|
|
|
|
+ if ((fd = open(DWMBLOCKSLOCKFILE, O_RDONLY)) == -1)
|
|
|
|
|
+ return;
|
|
|
|
|
+ if (fcntl(fd, F_GETLK, &fl) == -1 || fl.l_type == F_UNLCK)
|
|
|
|
|
+ return;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if (fcntl(fd, F_GETLK, &fl) == -1)
|
|
|
|
|
+ return;
|
|
|
|
|
+ if (fl.l_type == F_UNLCK) {
|
|
|
|
|
+ close(fd);
|
|
|
|
|
+ if ((fd = open(DWMBLOCKSLOCKFILE, O_RDONLY)) == -1)
|
|
|
|
|
+ return;
|
|
|
|
|
+ fl.l_type = F_WRLCK;
|
|
|
|
|
+ if (fcntl(fd, F_GETLK, &fl) == -1 || fl.l_type == F_UNLCK)
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ sv.sival_int = (dwmblockssig << 8) | arg->i;
|
|
|
|
|
+ sigqueue(fl.l_pid, SIGRTMIN, sv);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
@ -306,7 +318,7 @@ diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c
|
|
|
|
|
spawn(const Arg *arg)
|
|
|
|
|
{
|
|
|
|
|
if (arg->v == dmenucmd)
|
|
|
|
|
@@ -1805,7 +1879,7 @@
|
|
|
|
|
@@ -1805,7 +1891,7 @@
|
|
|
|
|
XSetWindowAttributes wa = {
|
|
|
|
|
.override_redirect = True,
|
|
|
|
|
.background_pixmap = ParentRelative,
|
|
|
|
@ -315,7 +327,7 @@ diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c
|
|
|
|
|
};
|
|
|
|
|
XClassHint ch = {"dwm", "dwm"};
|
|
|
|
|
for (m = mons; m; m = m->next) {
|
|
|
|
|
@@ -1847,6 +1921,41 @@
|
|
|
|
|
@@ -1847,6 +1933,41 @@
|
|
|
|
|
(unsigned char *) &(c->win), 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -357,7 +369,7 @@ diff -ruN dwm-6.2-ori/dwm.c dwm-6.2/dwm.c
|
|
|
|
|
int
|
|
|
|
|
updategeom(void)
|
|
|
|
|
{
|
|
|
|
|
@@ -1987,9 +2096,27 @@
|
|
|
|
|
@@ -1987,9 +2108,27 @@
|
|
|
|
|
void
|
|
|
|
|
updatestatus(void)
|
|
|
|
|
{
|
|
|
|
|