|
|
@ -82,10 +82,14 @@ bool workspace_by_name(swayc_t *view, void *data) {
|
|
|
|
|
|
|
|
|
|
|
|
void set_mask(swayc_t *view, void *data) {
|
|
|
|
void set_mask(swayc_t *view, void *data) {
|
|
|
|
uint32_t *p = data;
|
|
|
|
uint32_t *p = data;
|
|
|
|
|
|
|
|
|
|
|
|
if (view->type == C_VIEW) {
|
|
|
|
if (view->type == C_VIEW) {
|
|
|
|
wlc_view_set_mask(view->handle, *p);
|
|
|
|
wlc_view_set_mask(view->handle, *p);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (*p == 2) {
|
|
|
|
|
|
|
|
wlc_view_bring_to_front(view->handle);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
wlc_view_send_to_back(view->handle);
|
|
|
|
|
|
|
|
}
|
|
|
|
view->visible = (*p == 2);
|
|
|
|
view->visible = (*p == 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|