mirror of
https://github.com/swaywm/sway.git
synced 2026-04-28 06:46:26 -04:00
check if scratchpad is show in another workspace
This commit is contained in:
parent
b76b9d2dfe
commit
7b6aca4711
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ static void scratchpad_toggle_container(struct sway_container *con) {
|
||||||
struct sway_seat *seat = input_manager_current_seat();
|
struct sway_seat *seat = input_manager_current_seat();
|
||||||
struct sway_workspace *ws = seat_get_focused_workspace(seat);
|
struct sway_workspace *ws = seat_get_focused_workspace(seat);
|
||||||
// Check if it matches a currently visible scratchpad window and hide it.
|
// Check if it matches a currently visible scratchpad window and hide it.
|
||||||
if (con->workspace && (ws == con->workspace)) {
|
if (con->workspace && ws == con->workspace) {
|
||||||
root_scratchpad_hide(con);
|
root_scratchpad_hide(con);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue