Skip to content

Commit

Permalink
Simple fix for the flickering.
Browse files Browse the repository at this point in the history
  • Loading branch information
hordepfo committed May 6, 2014
1 parent 2006539 commit 5a7b246
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions usr/lib/linuxmint/mintMenu/mintMenu.py
Expand Up @@ -506,6 +506,8 @@ def __init__( self, applet, iid ):
self.mainwin = MainWindow( self.button_box, self.settings, self.keybinder )
self.mainwin.window.connect( "map-event", self.onWindowMap )
self.mainwin.window.connect( "unmap-event", self.onWindowUnmap )
self.mainwin.window.connect( "enter-notify-event", self.onWindowEnter )
self.mainwin.window.connect( "leave-notify-event", self.onWindowLeave )
self.mainwin.window.connect( "realize", self.onRealize )
self.mainwin.window.connect( "size-allocate", lambda *args: self.positionMenu() )

Expand Down Expand Up @@ -534,6 +536,14 @@ def onWindowUnmap( self, *args ):
self.pointerMonitor.ungrabPointer()
return False

def onWindowEnter(self, applet, event):
self.pointerMonitor.ungrabPointer()
return False

def onWindowLeave(self, applet, event):
self.pointerMonitor.grabPointer()
return False

def onRealize( self, *args):
self.pointerMonitor.addWindowToMonitor( self.mainwin.window.window )
self.pointerMonitor.addWindowToMonitor( self.applet.window )
Expand Down

0 comments on commit 5a7b246

Please sign in to comment.