From 013031ff3945f879b5de4335e0d11ada28512a74 Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Wed, 27 May 2020 22:16:35 +0200 Subject: [PATCH] fixed popover placing --- bin/mpdevil.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/mpdevil.py b/bin/mpdevil.py index 260bac7..cfef791 100644 --- a/bin/mpdevil.py +++ b/bin/mpdevil.py @@ -898,8 +898,10 @@ class SongPopover(Gtk.Popover): Gtk.Popover.__init__(self) rect=Gdk.Rectangle() rect.x=x - rect.y=y - rect.width = rect.height = 0 + #Gtk places popovers 26px above the given position for no obvious reasons, so I move them 26px + rect.y=y+26 + rect.width = 1 + rect.height = 1 self.set_pointing_to(rect) self.set_relative_to(relative)