Kill workspace switch when opening multitasking view (#1735)

Co-authored-by: Ryan Kornheisl <ryan@skarva.tech>
This commit is contained in:
Leo 2023-08-10 11:54:50 +09:00 committed by GitHub
parent 20ccf8b174
commit a0b3025f3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -652,6 +652,11 @@ namespace Gala {
opened = !opened;
var opening = opened;
// https://github.com/elementary/gala/issues/1728
if (opening) {
wm.kill_switch_workspace ();
}
foreach (var container in window_containers_monitors) {
if (opening) {
container.visible = true;

View File

@ -2081,7 +2081,6 @@ namespace Gala {
switch_workspace_window_created_id = 0;
}
end_switch_workspace ();
switch_workspace_with_gesture = false;
animating_switch_workspace = cancel_action;
if (cancel_action) {
@ -2154,6 +2153,9 @@ namespace Gala {
parents = null;
moving = null;
switch_workspace_with_gesture = false;
animating_switch_workspace = false;
switch_workspace_completed ();
}