mirror of
https://github.com/slgobinath/SafeEyes.git
synced 2024-12-23 23:41:20 +01:00
Fix multi-screen issue in unity desktop
This commit is contained in:
parent
2957f12c25
commit
7aa47ec561
@ -197,9 +197,14 @@ class BreakScreen(object):
|
||||
# Fix flickering screen in KDE by setting opacity to 1
|
||||
window.set_opacity(0.9)
|
||||
|
||||
# In Unity, move the window before present
|
||||
if self.context['desktop'] == 'unity':
|
||||
window.move(x, y)
|
||||
window.stick()
|
||||
window.set_keep_above(True)
|
||||
window.present()
|
||||
# In other desktop environments, move the window after present
|
||||
if self.context['desktop'] != 'unity':
|
||||
window.move(x, y)
|
||||
window.fullscreen()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user