mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-21 18:42:22 +00:00
react to clicking on monitor by selecting it
This commit is contained in:
parent
1e5e3fe81a
commit
393c0c09b3
@ -37,6 +37,7 @@ class MonitorItem(QGraphicsRectItem, QObject):
|
||||
def mousePressEvent(self, event):
|
||||
self.setCursor(Qt.ClosedHandCursor)
|
||||
self.orig_pos = self.pos()
|
||||
self.window.ui.screenCombo.setCurrentText(self.name)
|
||||
|
||||
def mouseReleaseEvent(self, event):
|
||||
self.setCursor(Qt.OpenHandCursor)
|
||||
|
Loading…
Reference in New Issue
Block a user