summarylogtreecommitdiffstats
path: root/classhint.patch
diff options
context:
space:
mode:
authorBrian Bidulock2015-06-10 23:14:10 -0600
committerBrian Bidulock2015-06-10 23:14:10 -0600
commitd7fece3f04dda29d8b9f94cee879f684924a3496 (patch)
tree01732c11ae85511881e75962357b1bdb2ac82554 /classhint.patch
downloadaur-wmwork.tar.gz
initial version
Diffstat (limited to 'classhint.patch')
-rw-r--r--classhint.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/classhint.patch b/classhint.patch
new file mode 100644
index 000000000000..830acaab61f1
--- /dev/null
+++ b/classhint.patch
@@ -0,0 +1,15 @@
+diff -up src/wmwork-0.2.5/src/wmgeneral.c.orig src/wmwork-0.2.5/src/wmgeneral.c
+--- src/wmwork-0.2.5/src/wmgeneral.c.orig 2014-04-12 06:56:33.000000000 -0600
++++ src/wmwork-0.2.5/src/wmgeneral.c 2014-04-12 06:57:10.000000000 -0600
+@@ -440,8 +440,10 @@ void openXwindow(int argc, char *argv[],
+
+ /* Activate hints */
+ XSetWMNormalHints(display, win, &mysizehints);
++ if (strrchr(wname, '/'))
++ wname = strrchr(wname, '/') + 1;
+ classHint.res_name = wname;
+- classHint.res_class = wname;
++ classHint.res_class = "DockApp";
+ XSetClassHint(display, win, &classHint);
+
+ XSelectInput(display, win, ButtonPressMask | ExposureMask | ButtonReleaseMask | PointerMotionMask | StructureNotifyMask | EnterWindowMask | LeaveWindowMask | KeyPressMask | KeyReleaseMask);