mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
desktop.c: prevent switching workspaces for always-on-bottom windows
Fixes: #1170 Reported-by: @stefonarch Reported-by: @tsujan
This commit is contained in:
parent
50ceae5fb4
commit
4174553124
3 changed files with 4 additions and 3 deletions
|
|
@ -323,6 +323,7 @@ void view_toggle_maximize(struct view *view);
|
|||
void view_toggle_decorations(struct view *view);
|
||||
|
||||
bool view_is_always_on_top(struct view *view);
|
||||
bool view_is_always_on_bottom(struct view *view);
|
||||
void view_toggle_always_on_top(struct view *view);
|
||||
void view_toggle_always_on_bottom(struct view *view);
|
||||
|
||||
|
|
|
|||
|
|
@ -67,9 +67,9 @@ desktop_focus_view(struct view *view, bool raise)
|
|||
|
||||
/*
|
||||
* Switch workspace if necessary to make the view visible
|
||||
* (unnecessary for "always on top" views).
|
||||
* (unnecessary for "always on {top,bottom}" views).
|
||||
*/
|
||||
if (!view_is_always_on_top(view)) {
|
||||
if (!view_is_always_on_top(view) && !view_is_always_on_bottom(view)) {
|
||||
workspaces_switch_to(view->workspace, /*update_focus*/ false);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -872,7 +872,7 @@ view_toggle_always_on_top(struct view *view)
|
|||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
bool
|
||||
view_is_always_on_bottom(struct view *view)
|
||||
{
|
||||
assert(view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue