Skip to content

Commit

Permalink
MultitaskingView: Fix dock animation (#1912)
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 authored May 28, 2024
1 parent bb8da6c commit fc3c22f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Widgets/MultitaskingView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -786,9 +786,9 @@ namespace Gala {
private void show_docks (bool with_gesture, bool is_cancel_animation) {
unowned GLib.List<Meta.WindowActor> window_actors = display.get_window_actors ();
foreach (unowned Meta.WindowActor actor in window_actors) {
const int MAX_OFFSET = 85;
const int MAX_OFFSET = 200;

if (actor.is_destroyed ()) {
if (actor.is_destroyed () || !actor.visible) {
continue;
}

Expand All @@ -807,7 +807,7 @@ namespace Gala {

var window_geom = window.get_frame_rect ();
var top = monitor_geom.y + MAX_OFFSET > window_geom.y;
var bottom = monitor_geom.y + monitor_geom.height - MAX_OFFSET > window_geom.y;
var bottom = monitor_geom.y + monitor_geom.height - MAX_OFFSET < window_geom.y;

if (!top && !bottom) {
continue;
Expand Down

0 comments on commit fc3c22f

Please sign in to comment.