pip: Refactor update_screen_position

Move the logic to place the PiP window in a position that is 100%
visible to its own method (place_window_in_screen).

Refactor, no functional changes.
This commit is contained in:
José Expósito 2021-07-07 08:22:21 +02:00 committed by Cassidy James Blaede
parent c8e5312623
commit c0ab5dd437

View File

@ -379,6 +379,10 @@ public class Gala.Plugins.PIP.PopupWindow : Clutter.Actor {
}
private void update_screen_position () {
place_window_in_screen ();
}
private void place_window_in_screen () {
Meta.Rectangle monitor_rect;
get_current_monitor_rect (out monitor_rect);