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

This commit is contained in:
Rinaldus 2016-07-05 12:29:21 +03:00
parent e2081d4540
commit 82ece43ac1
Signed by: Rinaldus
GPG Key ID: C34E249005178E87
1 changed files with 4 additions and 0 deletions

View File

@ -113,6 +113,10 @@ class Window(QDialog):
def moveEvent(self,event): 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("PosX",window.x())
programSettings.setValue("PosY",window.y()) programSettings.setValue("PosY",window.y())