Browse Source

solved problem when KWin 5.x can move even locked window

master
Rinaldus 6 years ago
parent
commit
82ece43ac1
Signed by: Rinaldus
GPG Key ID: C34E249005178E87
  1. 4
      photoframe.py

4
photoframe.py

@ -113,6 +113,10 @@ class Window(QDialog): @@ -113,6 +113,10 @@ class Window(QDialog):
def moveEvent(self,event):
if (self.locked):
# The following hack is for KWin 5.x because it can move even locked windows, even frameless windows. Now if you try to move locked window, it goes back.
self.move(int(programSettings.value("PosX")),int(programSettings.value("PosY")))
event.ignore()
programSettings.setValue("PosX",window.x())
programSettings.setValue("PosY",window.y())

Loading…
Cancel
Save