From 7a4e5531f35077eac0b7e89a778d2c36d6783a47 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Tue, 10 Oct 2023 20:07:28 +0200 Subject: [PATCH] #1887 rework window layer system --- src/view.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/view.c b/src/view.c index 46aea938..1f0bd83e 100644 --- a/src/view.c +++ b/src/view.c @@ -1,5 +1,6 @@ extern int g_connection; -extern int g_layer_above_window_level; +extern int g_layer_normal_window_level; +extern int g_layer_below_window_level; extern struct display_manager g_display_manager; extern struct space_manager g_space_manager; extern struct window_manager g_window_manager; @@ -17,7 +18,8 @@ void insert_feedback_show(struct window_node *node) sls_window_disable_shadow(node->feedback_window.id); SLSSetWindowResolution(g_connection, node->feedback_window.id, 2.0f); SLSSetWindowOpacity(g_connection, node->feedback_window.id, 0); - SLSSetWindowLevel(g_connection, node->feedback_window.id, g_layer_below_window_level); + SLSSetWindowLevel(g_connection, node->feedback_window.id, g_layer_normal_window_level); + SLSSetWindowSubLevel(g_connection, node->feedback_window.id, g_layer_below_window_level); node->feedback_window.context = SLWindowContextCreate(g_connection, node->feedback_window.id, 0); CGContextSetLineWidth(node->feedback_window.context, g_window_manager.border_width); CGContextSetRGBFillColor(node->feedback_window.context,