WindowCloneContainer: When no window is active, select active window based on direction during keyboard nav (#1849)

Co-authored-by: Leo <lenemter@gmail.com>
This commit is contained in:
Leonhard 2024-02-16 11:50:11 +01:00 committed by GitHub
parent 1315f87340
commit 13018e4f5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -50,7 +50,6 @@ public class Gala.WindowClone : Clutter.Actor {
active_shape.set_easing_duration (wm.enable_animations ? FADE_ANIMATION_DURATION : 0);
active_shape.opacity = value ? 255 : 0;
active_shape.restore_easing_state ();
}
}

View File

@ -213,7 +213,6 @@ namespace Gala {
return Clutter.EVENT_PROPAGATE;
}
switch (event.get_key_symbol ()) {
case Clutter.Key.Escape:
requested_close ();
@ -326,6 +325,10 @@ namespace Gala {
}
if (closest == null) {
if (current_window != null) {
Clutter.get_default_backend ().get_default_seat ().bell_notify ();
current_window.active = true;
}
return;
}