mirror of
https://github.com/elementary/gala.git
synced 2024-10-26 16:01:57 +03:00
Fix PiP positioning offset (#1507)
This commit is contained in:
parent
1ca12ac212
commit
2473752de3
@ -79,6 +79,12 @@ public class Gala.Plugins.PIP.Plugin : Gala.Plugin {
|
||||
int point_x = x - (int)active.x;
|
||||
int point_y = y - (int)active.y;
|
||||
|
||||
// Compensate for server-side window decorations
|
||||
var input_rect = active.get_meta_window ().get_buffer_rect ();
|
||||
var outer_rect = active.get_meta_window ().get_frame_rect ();
|
||||
point_x -= outer_rect.x - input_rect.x;
|
||||
point_y -= outer_rect.y - input_rect.y;
|
||||
|
||||
var rect = Graphene.Rect.alloc ();
|
||||
rect.init (point_x, point_y, width, height);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user