only call updatewindowtype for x11 windows
parent
ad9b3bc65d
commit
f13227ebae
16
dwl.c
16
dwl.c
|
@ -331,8 +331,8 @@ applyrules(Client *c)
|
||||||
/* rule matching */
|
/* rule matching */
|
||||||
c->isfloating = 0;
|
c->isfloating = 0;
|
||||||
#ifdef XWAYLAND
|
#ifdef XWAYLAND
|
||||||
updatewindowtype(c);
|
|
||||||
if (c->type != XDGShell) {
|
if (c->type != XDGShell) {
|
||||||
|
updatewindowtype(c);
|
||||||
appid = c->surface.xwayland->class;
|
appid = c->surface.xwayland->class;
|
||||||
title = c->surface.xwayland->title;
|
title = c->surface.xwayland->title;
|
||||||
} else
|
} else
|
||||||
|
@ -1842,14 +1842,12 @@ void
|
||||||
updatewindowtype(Client *c)
|
updatewindowtype(Client *c)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
|
for (i = 0; i < c->surface.xwayland->window_type_len; i++)
|
||||||
if (c->type != XDGShell)
|
if (c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeDialog] ||
|
||||||
for (i = 0; i < c->surface.xwayland->window_type_len; i++)
|
c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeSplash] ||
|
||||||
if (c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeDialog] ||
|
c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeToolbar] ||
|
||||||
c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeSplash] ||
|
c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeUtility])
|
||||||
c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeToolbar] ||
|
c->isfloating = 1;
|
||||||
c->surface.xwayland->window_type[i] == netatom[NetWMWindowTypeUtility])
|
|
||||||
c->isfloating = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue