@@ -55,6 +55,8 @@ public class Gala.PanelClone : Object {
5555 }
5656 });
5757
58+ wm. get_display (). in_fullscreen_changed. connect (check_hide);
59+
5860 Idle . add_once (() = > {
5961 if (hide_mode == NEVER ) {
6062 show ();
@@ -89,22 +91,38 @@ public class Gala.PanelClone : Object {
8991 return ;
9092 }
9193
92- new GesturePropertyTransition (actor, default_gesture_tracker, " translation-y" , null , calculate_translation_y (true )). start (false );
94+ InternalUtils . update_transients_visible (panel. window, false );
95+
96+ new GesturePropertyTransition (
97+ actor, default_gesture_tracker, " translation-y" , null , calculate_translation_y (true )
98+ ). start (false , () = > InternalUtils . update_transients_visible (panel. window, ! panel_hidden));
9399
94100 default_gesture_tracker. add_success_callback (false , () = > panel_hidden = true );
95101 }
96102
97103 private void show () {
98- if (! panel_hidden || default_gesture_tracker. recognizing) {
104+ if (! panel_hidden || default_gesture_tracker. recognizing || wm . get_display () . get_monitor_in_fullscreen (panel . window . get_monitor ()) ) {
99105 return ;
100106 }
101107
102108 if (! Meta . Util . is_wayland_compositor ()) {
103109 Utils . x11_unset_window_pass_through (panel. window);
104110 }
105111
106- new GesturePropertyTransition (actor, default_gesture_tracker, " translation-y" , null , calculate_translation_y (false )). start (false );
112+ new GesturePropertyTransition (
113+ actor, default_gesture_tracker, " translation-y" , null , calculate_translation_y (false )
114+ ). start (false , () = > InternalUtils . update_transients_visible (panel. window, ! panel_hidden));
107115
108116 default_gesture_tracker. add_success_callback (false , () = > panel_hidden = false );
109117 }
118+
119+ private void check_hide () {
120+ if (wm. get_display (). get_monitor_in_fullscreen (panel. window. get_monitor ())) {
121+ hide ();
122+ } else if (hide_mode == NEVER ) {
123+ show ();
124+ } else {
125+ hide_tracker. update_overlap ();
126+ }
127+ }
110128}
0 commit comments