From 0ceee74091f8a9019bfc93c4ec02b71892de31f8 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Wed, 24 Mar 2021 11:31:38 +0800 Subject: [PATCH] One client can be moved to another layer only if it has not any window --- src/client/client.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/client/client.c b/src/client/client.c index 9e7e5322..3eaff73e 100644 --- a/src/client/client.c +++ b/src/client/client.c @@ -705,8 +705,6 @@ BOOL __mg_client_on_layer_changed (GHANDLE layer_handle, int zi_shmid) { if (layer_handle != INV_LAYER_HANDLE) { ZORDERINFO* zi; - ZORDERNODE* nodes; - int slot; __mg_layer = INV_LAYER_HANDLE; __mg_zorder_info = NULL; @@ -725,7 +723,10 @@ BOOL __mg_client_on_layer_changed (GHANDLE layer_handle, int zi_shmid) __mg_layer = layer_handle; __mg_zorder_info = zi; - /* Since 5.0.6: change znode index of general window for this client */ +#if 0 /* obsolete */ + ZORDERNODE* nodes; + int slot; + nodes = GET_ZORDERNODE(zi); slot = zi->first_tooltip; for (; slot > 0; slot = nodes[slot].next) { @@ -753,6 +754,7 @@ BOOL __mg_client_on_layer_changed (GHANDLE layer_handle, int zi_shmid) win->idx_znode = slot; } } +#endif /* obsolete */ return TRUE; }