mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 15:15:39 +03:00
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:
parent
c8e5312623
commit
c0ab5dd437
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user