@@ -48,8 +48,8 @@ public class Gala.PanelClone : Object {
4848 actor = (Meta . WindowActor ) panel. window. get_compositor_private ();
4949 // WindowActor position and Window position aren't necessarily the same.
5050 // The clone needs the actor position
51- panel . delegate_actor . notify[" x" ]. connect (update_clone_position);
52- panel . delegate_actor . notify[" y" ]. connect (update_clone_position);
51+ actor . notify[" x" ]. connect (update_clone_position);
52+ actor . notify[" y" ]. connect (update_clone_position);
5353 // Actor visibility might be changed by something else e.g. workspace switch
5454 // but we want to keep it in sync with us
5555 actor. notify[" visible" ]. connect (update_visible);
@@ -97,7 +97,7 @@ public class Gala.PanelClone : Object {
9797 switch (panel. anchor) {
9898 case TOP :
9999 case BOTTOM :
100- return panel . delegate_actor . x;
100+ return actor . x;
101101 default:
102102 return 0 ;
103103 }
@@ -106,9 +106,9 @@ public class Gala.PanelClone : Object {
106106 private float calculate_clone_y (bool hidden ) {
107107 switch (panel. anchor) {
108108 case TOP :
109- return hidden ? panel . delegate_actor . y - actor. height : panel . delegate_actor . y;
109+ return hidden ? actor . y - actor. height : actor . y;
110110 case BOTTOM :
111- return hidden ? panel . delegate_actor . y + actor. height : panel . delegate_actor . y;
111+ return hidden ? actor . y + actor. height : actor . y;
112112 default:
113113 return 0 ;
114114 }
@@ -128,7 +128,7 @@ public class Gala.PanelClone : Object {
128128 panel_hidden = true ;
129129
130130 if (! Meta . Util . is_wayland_compositor ()) {
131- panel . window . move_frame ( false , DelegateActor . OUT_OF_BOUNDS , DelegateActor . OUT_OF_BOUNDS );
131+ Utils . x11_set_window_pass_through (panel . window );
132132 }
133133
134134 if (panel. anchor != TOP && panel. anchor != BOTTOM ) {
@@ -151,7 +151,7 @@ public class Gala.PanelClone : Object {
151151 }
152152
153153 if (! Meta . Util . is_wayland_compositor ()) {
154- panel . window . move_frame ( false , panel. delegate_actor . actual_x, panel . delegate_actor . actual_y );
154+ Utils . x11_unset_window_pass_through ( panel. window );
155155 }
156156
157157 clone. save_easing_state ();
0 commit comments