File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,26 @@ public class Gala.BackgroundWindow : Object {
2121 public void update_window (Meta .Window new_window ) {
2222 if (providing_window != null ) {
2323 providing_window. unmanaging. disconnect (on_window_unmanaging);
24+ providing_window. position_changed. disconnect (position_window);
25+ providing_window. size_changed. disconnect (position_window);
2426 }
2527
2628 providing_window = new_window;
2729
28- var monitor_geom = display. get_monitor_geometry (monitor_index);
29- providing_window. move_frame (false , monitor_geom. x, monitor_geom. y);
30-
3130 providing_window. unmanaging. connect (on_window_unmanaging);
31+ providing_window. position_changed. connect (position_window);
32+ providing_window. size_changed. connect (position_window);
3233 }
3334
3435 private void on_window_unmanaging () {
3536 providing_window = null ;
3637 }
3738
39+ private void position_window () {
40+ var monitor_geom = display. get_monitor_geometry (monitor_index);
41+ providing_window. move_frame (false , monitor_geom. x, monitor_geom. y);
42+ }
43+
3844 public Clutter .Actor get_background_clone () {
3945 return new BackgroundClone (this );
4046 }
You can’t perform that action at this time.
0 commit comments