mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
sends hidden views to back, visible view to front
This commit is contained in:
parent
ffb3458322
commit
4077238782
3 changed files with 7 additions and 3 deletions
|
|
@ -82,10 +82,14 @@ bool workspace_by_name(swayc_t *view, void *data) {
|
|||
|
||||
void set_mask(swayc_t *view, void *data) {
|
||||
uint32_t *p = data;
|
||||
|
||||
if (view->type == C_VIEW) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue