Skip to content

Commit d32d4ed

Browse files
committed
Fix animations
1 parent ff4009c commit d32d4ed

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/WindowManager.vala

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,19 +1196,17 @@ namespace Gala {
11961196
#else
11971197
public override void size_change (Meta.WindowActor actor, Meta.SizeChange which_change_local, Meta.Rectangle old_frame_rect, Meta.Rectangle old_buffer_rect) {
11981198
#endif
1199-
if (!AnimationsSettings.get_enable_animations ()) {
1200-
return;
1201-
}
1202-
12031199
which_change = which_change_local;
12041200
old_rect_size_change = old_frame_rect;
12051201

1206-
latest_window_snapshot = Utils.get_window_actor_snapshot (actor, old_frame_rect);
1202+
if (AnimationsSettings.get_enable_animations ()) {
1203+
latest_window_snapshot = Utils.get_window_actor_snapshot (actor, old_frame_rect);
1204+
}
12071205
}
12081206

12091207
// size_changed gets called after frame_rect has updated
12101208
public override void size_changed (Meta.WindowActor actor) {
1211-
if (!AnimationsSettings.get_enable_animations () || which_change == null) {
1209+
if (which_change == null) {
12121210
return;
12131211
}
12141212

@@ -1314,9 +1312,12 @@ namespace Gala {
13141312
}
13151313

13161314
private void maximize (Meta.WindowActor actor, int ex, int ey, int ew, int eh) {
1315+
warning ("Maximize");
1316+
13171317
unowned var window = actor.get_meta_window ();
13181318
if (window.maximized_horizontally && behavior_settings.get_boolean ("move-maximized-workspace")
13191319
|| window.fullscreen && behavior_settings.get_boolean ("move-fullscreened-workspace")) {
1320+
warning ("Moving to next ws");
13201321
move_window_to_next_ws (window);
13211322
}
13221323

0 commit comments

Comments
 (0)