mirror of
https://github.com/swaywm/sway.git
synced 2024-11-21 23:41:27 +00:00
criteria & scratchpad verify if show in another workspace (#3522)
check if scratchpad is show in another workspace
This commit is contained in:
parent
4f4424f66c
commit
5cb3d4769c
|
@ -72,8 +72,10 @@ static void scratchpad_toggle_container(struct sway_container *con) {
|
|||
return;
|
||||
}
|
||||
|
||||
struct sway_seat *seat = input_manager_current_seat();
|
||||
struct sway_workspace *ws = seat_get_focused_workspace(seat);
|
||||
// Check if it matches a currently visible scratchpad window and hide it.
|
||||
if (con->workspace) {
|
||||
if (con->workspace && ws == con->workspace) {
|
||||
root_scratchpad_hide(con);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue