From ced33040332e0136cf6b5bba72d9422902b76880 Mon Sep 17 00:00:00 2001
From: Olivier Fourdan <fourdan.olivier@wanadoo.fr>
Date: Thu, 12 Dec 2002 21:44:17 +0000
Subject: [PATCH] Even better fix...

(Old svn revision: 10799)
---
 src/client.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/client.c b/src/client.c
index e475a8f1b..859db9066 100644
--- a/src/client.c
+++ b/src/client.c
@@ -509,9 +509,11 @@ void clientGetNetWmType(Client * c)
                 c->type_atom = net_wm_window_type_dock;
                 break;
             case WIN_LAYER_NORMAL:
-            default:
                 c->type_atom = net_wm_window_type_normal;
                 break;
+            default:
+                c->type_atom = None;
+                break;
         }
     }
     else
@@ -727,7 +729,7 @@ static void clientWindowType(Client * c)
         {
             DBG("atom net_wm_window_type_normal detected\n");
             c->type = WINDOW_NORMAL;
-            c->initial_layer = c->win_layer;
+            c->initial_layer = WIN_LAYER_NORMAL;
         }
         else if(c->type_atom == net_wm_window_type_utility)
         {
-- 
GitLab