Skip to content

Commit

Permalink
Offset context menu in Manager to avoid accidental clicks
Browse files Browse the repository at this point in the history
Small fix to Qubes Manager to open the context menu slightly to the
right of the mouse to avoid accidental clicks. Originally created by
@unman , ported to 3.2 branch.

references QubesOS/qubes-issues#1831
  • Loading branch information
marmarta committed Jul 12, 2018
1 parent 812c71f commit 7d477ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubesmanager/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,7 @@ def createPopupMenu(self):
return menu

def open_tools_context_menu(self, widget, point):
self.tools_context_menu.exec_(widget.mapToGlobal(point))
self.tools_context_menu.exec_(widget.mapToGlobal(point + QPoint(10,0)))

@pyqtSlot('const QPoint&')
def open_context_menu(self, point):
Expand Down

0 comments on commit 7d477ae

Please sign in to comment.