aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-08-19 00:23:54 -0500
committerDevin J. Pohly <djpohly@gmail.com>2020-08-19 00:23:54 -0500
commitf13227ebae53840411ba75e320ba09ee2da19b44 (patch)
tree08d1607e5f55d682369cfada1c42ec63a5a8c8b3
parentad9b3bc65d9e4802d2982bf09938783cfb7ee1b3 (diff)
only call updatewindowtype for x11 windows
-rw-r--r--dwl.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/dwl.c b/dwl.c
index 357718f..92414fa 100644
--- a/dwl.c
+++ b/dwl.c
@@ -331,8 +331,8 @@ applyrules(Client *c)
/* rule matching */
c->isfloating = 0;
#ifdef XWAYLAND
- updatewindowtype(c);
if (c->type != XDGShell) {
+ updatewindowtype(c);
appid = c->surface.xwayland->class;
title = c->surface.xwayland->title;
} else
@@ -1842,14 +1842,12 @@ void
updatewindowtype(Client *c)
{
size_t i;
-
- if (c->type != XDGShell)
- for (i = 0; i < c->surface.xwayland->window_type_len; i++)
- if (c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeDialog] ||
- c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeSplash] ||
- c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeToolbar] ||
- c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeUtility])
- c->isfloating = 1;
+ for (i = 0; i < c->surface.xwayland->window_type_len; i++)
+ if (c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeDialog] ||
+ c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeSplash] ||
+ c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeToolbar] ||
+ c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeUtility])
+ c->isfloating = 1;
}
void