From 4f7fde87009a01e16ab2309a5357e3429f6a4748 Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Wed, 6 Mar 2013 18:39:13 -0500 Subject: [PATCH] Fix popup window positioning --- usr/lib/linuxmint/mintMenu/mintMenu.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usr/lib/linuxmint/mintMenu/mintMenu.py b/usr/lib/linuxmint/mintMenu/mintMenu.py index 87c7687..3365de2 100755 --- a/usr/lib/linuxmint/mintMenu/mintMenu.py +++ b/usr/lib/linuxmint/mintMenu/mintMenu.py @@ -807,8 +807,13 @@ class MenuWin( object ): ourWidth = self.mainwin.window.get_size()[0] ourHeight = self.mainwin.window.get_size()[1] + self.mainwin.offset + x = c_int() + y = c_int() # Get the dimensions/position of the widgetToAlignWith - entryX, entryY = self.applet.get_allocation().x, self.applet.get_allocation().y + gdk.gdk_window_get_origin(hash(self.applet.window), byref(x), byref(y)) + entryX = x.value + entryY = y.value + entryWidth, entryHeight = self.applet.get_allocation().width, self.applet.get_allocation().height entryHeight = entryHeight + self.mainwin.offset