One client can be moved to another layer only if it has not any window

This commit is contained in:
Vincent Wei
2021-03-24 11:31:38 +08:00
parent 0b023c27de
commit 0ceee74091
+5 -3
View File
@@ -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;
}