aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/dwm/client.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-06-07 15:29:42 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-06-07 15:29:42 -0700
commit75eece6dd52aa49705bf59a6f5b6197b7a14f5db (patch)
tree3aafe0581b8a6cca95467f26334668c1e914f32e /sys/cmd/dwm/client.c
parent13ebf171dd7c7cf3fdba6d89c184a644fc37ac38 (diff)
feat: working dispatch menu
Diffstat (limited to 'sys/cmd/dwm/client.c')
-rw-r--r--sys/cmd/dwm/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/cmd/dwm/client.c b/sys/cmd/dwm/client.c
index 1401677..106082c 100644
--- a/sys/cmd/dwm/client.c
+++ b/sys/cmd/dwm/client.c
@@ -9,10 +9,11 @@ applyrules(Client *c)
Monitor *m;
XClassHint ch = { nil, nil };
- /* rule matching */
c->isfloating = 0;
c->tags = 0;
c->noswallow = -1;
+
+ /* rule matching */
XGetClassHint(dpy, c->win, &ch);
class = ch.res_class ? ch.res_class : broken;
instance = ch.res_name ? ch.res_name : broken;