summaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorminus <[email protected]>2015-08-25 18:24:15 +0200
committerminus <[email protected]>2015-08-25 18:24:15 +0200
commitf22c9379530ebaacefcc337714cc2a5fe0db8902 (patch)
treed45200574d07c1522e3c83c378b4e5d1a66d4594 /sway/handlers.c
parent1efda79bf2f72a416806de3159e1c2936c5fdbe9 (diff)
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)
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c3
1 files changed, 3 insertions, 0 deletions
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;
}