mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 11:46:31 +00:00
only call updatewindowtype for x11 windows
This commit is contained in:
parent
ad9b3bc65d
commit
f13227ebae
1 changed files with 7 additions and 9 deletions
4
dwl.c
4
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,8 +1842,6 @@ 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] ||
|
||||
|
|
Loading…
Reference in a new issue