Commit 351b86c8 authored by Dr. Michael Petter's avatar Dr. Michael Petter

fixed bug related to multiple desktops

parent c37cc72d
......@@ -115,6 +115,7 @@ class OverlayWidget(QtWidgets.QWidget):
hbox.addWidget(self.buttons)
self.setLayout(hbox)
self.hidden=False
self.whiteboard=True
self.show()
self.ownwindowid=os.popen("xdotool sleep 0.2 getactivewindow").readline().rstrip('\n')
......@@ -154,9 +155,9 @@ class OverlayWidget(QtWidgets.QWidget):
qp = QtGui.QPainter(self)
if self.whiteboard:
qp.setBrush(QtGui.QColor("white"))
qp.setBrush(QtCore.Qt.white)
qp.setPen(QtCore.Qt.NoPen)
qp.drawRect(self.geometry())
qp.drawRect(QtCore.QRect(QtCore.QPoint(0,0),self.geometry().bottomRight()))
for (color,start,end) in self.highlights:
qp.setBrush(color)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment