Skip to content

Commit

Permalink
#1887 rework window layer system
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Oct 10, 2023
1 parent 78694c7 commit 7a4e553
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/view.c
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit 7a4e553

Please sign in to comment.