summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-11-30 17:42:58 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-11-30 17:42:58 -0600
commit3213088aa23e1f6cad1a5ba506dfb7318e1011c9 (patch)
tree5919c64dee457abd2fbebd16d015a8c05363145d
parent087373698afeab0af9257358955f1c3c772d24e3 (diff)
do not try to set the parent's same tags and monitor for xwayland clients
References: https://github.com/djpohly/dwl/pull/334#issuecomment-1330166324
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index c1ff934..fd22c8f 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1381,7 +1381,8 @@ mapnotify(struct wl_listener *listener, void *data)
* we always consider floating, clients that have parent and thus
* we set the same tags and monitor than its parent, if not
* try to apply rules for them */
- if ((p = client_get_parent(c))) {
+ /* TODO: https://github.com/djpohly/dwl/pull/334#issuecomment-1330166324 */
+ if (c->type == XDGShell && (p = client_get_parent(c))) {
c->isfloating = 1;
wlr_scene_node_reparent(&c->scene->node, layers[LyrFloat]);
setmon(c, p->mon, p->tags);