From f22c9379530ebaacefcc337714cc2a5fe0db8902 Mon Sep 17 00:00:00 2001 From: minus Date: Tue, 25 Aug 2015 18:24:15 +0200 Subject: refactored view visibility - replace visibilty mask integers with an enum - set output's visibilty mask on creation - added update_visibility to manually update a containers visibility (e.g. when it moved to an invisible workspace) --- sway/handlers.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sway/handlers.c') diff --git a/sway/handlers.c b/sway/handlers.c index 3a4e31ae..8b3ae3c1 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -90,6 +90,9 @@ swayc_t *container_under_pointer(void) { static bool handle_output_created(wlc_handle output) { swayc_t *op = new_output(output); + // Visibilty mask to be able to make view invisible + wlc_output_set_mask(output, VISIBLE); + if (!op) { return false; } -- cgit v1.2.3