From 22fe30cdd99d111f043b3282a02f39df468c7ac2 Mon Sep 17 00:00:00 2001
From: Olivier Fourdan <fourdan@xfce.org>
Date: Wed, 15 May 2019 22:15:14 +0200
Subject: [PATCH] netwm: Fix window type for broken clients

Bug: 15399

If a client specifies an invalid NET_WM_WINDOW_TYPE, fallback to normal
window type.

Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
---
 src/netwm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/netwm.c b/src/netwm.c
index 3c0121f13..59567d39a 100644
--- a/src/netwm.c
+++ b/src/netwm.c
@@ -1346,7 +1346,7 @@ clientWindowType (Client * c)
     else
     {
         TRACE ("no \"net\" atom detected");
-        c->type = UNSET;
+        c->type = WINDOW_NORMAL;
         c->initial_layer = c->win_layer;
     }
 
-- 
GitLab