mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
Update translatorUI.py
This commit is contained in:
parent
f75172923d
commit
4994d6248d
@ -567,7 +567,19 @@ class QUnFrameWindow(resizableframeless):
|
||||
windows.GetWindowLong(int(self.winId()), windows.GWL_EXSTYLE)
|
||||
& windows.WS_EX_TOPMOST
|
||||
) == 0:
|
||||
self.canceltop()
|
||||
windows.SetWindowPos(
|
||||
int(self.winId()),
|
||||
windows.HWND_NOTOPMOST,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
windows.SWP_NOACTIVATE | windows.SWP_NOSIZE | windows.SWP_NOMOVE,
|
||||
)
|
||||
HWNDStyleEx = windows.GetWindowLong(int(self.winId()), windows.GWL_EXSTYLE)
|
||||
windows.SetWindowLong(
|
||||
int(self.winId()), windows.GWL_EXSTYLE, HWNDStyleEx & ~windows.WS_EX_TOPMOST
|
||||
)
|
||||
HWNDStyleEx = windows.GetWindowLong(int(self.winId()), windows.GWL_EXSTYLE)
|
||||
windows.SetWindowLong(
|
||||
int(self.winId()), windows.GWL_EXSTYLE, HWNDStyleEx | windows.WS_EX_TOPMOST
|
||||
|
Loading…
x
Reference in New Issue
Block a user