Follow animation settings on zoom shortcut

This commit is contained in:
JoseExposito 2021-04-04 13:39:30 +02:00 committed by Daniel Foré
parent 8f92acba3a
commit d96322d9b8

View File

@ -61,13 +61,13 @@ namespace Gala {
[CCode (instance_pos = -1)]
void zoom_in (Meta.Display display, Meta.Window? window,
Clutter.KeyEvent event, Meta.KeyBinding binding) {
zoom (SHORTCUT_DELTA, true, true);
zoom (SHORTCUT_DELTA, true, wm.enable_animations);
}
[CCode (instance_pos = -1)]
void zoom_out (Meta.Display display, Meta.Window? window,
Clutter.KeyEvent event, Meta.KeyBinding binding) {
zoom (-SHORTCUT_DELTA, true, true);
zoom (-SHORTCUT_DELTA, true, wm.enable_animations);
}
private void on_gesture_detected (Gesture gesture) {