@@ -28,15 +28,15 @@ public class Gala.ShellWindow : PositionedWindow {
2828 actor = (Meta . WindowActor ) window. get_compositor_private ();
2929 }
3030
31- public void add_state (State state , GestureTracker gesture_tracker ) {
32- animate (current_state | state, gesture_tracker);
31+ public void add_state (State state , GestureTracker gesture_tracker , bool with_gesture ) {
32+ animate (current_state | state, gesture_tracker, with_gesture );
3333 }
3434
35- public void remove_state (State state , GestureTracker gesture_tracker ) {
36- animate (current_state & ~state, gesture_tracker);
35+ public void remove_state (State state , GestureTracker gesture_tracker , bool with_gesture ) {
36+ animate (current_state & ~state, gesture_tracker, with_gesture );
3737 }
3838
39- private void animate (State new_state , GestureTracker gesture_tracker ) {
39+ private void animate (State new_state , GestureTracker gesture_tracker , bool with_gesture ) {
4040 if (new_state == current_state || gesture_ongoing) {
4141 return ;
4242 }
@@ -51,9 +51,9 @@ public class Gala.ShellWindow : PositionedWindow {
5151
5252 new GesturePropertyTransition (
5353 actor, gesture_tracker, get_animation_property (), null , calculate_value ((new_state & HIDING_STATES ) != 0 )
54- ). start (true , () = > InternalUtils . update_transients_visible (window, (current_state & HIDING_STATES ) == 0 ));
54+ ). start (with_gesture , () = > InternalUtils . update_transients_visible (window, (current_state & HIDING_STATES ) == 0 ));
5555
56- gesture_tracker. add_success_callback ( false , (percentage, completions) = > {
56+ gesture_tracker. add_end_callback (with_gesture , (percentage, completions) = > {
5757 if (completions != 0 ) {
5858 current_state = new_state;
5959 }
0 commit comments