mirror of
https://github.com/ralsina/xrandroll.git
synced 2024-11-24 20:12:21 +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