- Fix crash when monitor not chosen yet
This commit is contained in:
parent
1d83af98c0
commit
08cdd4a221
1 changed files with 2 additions and 1 deletions
|
|
@ -277,7 +277,8 @@ class OverlayWindow(Gtk.Window):
|
|||
display = Gdk.Display.get_default()
|
||||
if "get_monitor" in dir(display):
|
||||
monitor = display.get_monitor(self.monitor)
|
||||
GtkLayerShell.set_monitor(self, monitor)
|
||||
if monitor:
|
||||
GtkLayerShell.set_monitor(self, monitor)
|
||||
else:
|
||||
log.error("No get_monitor in display")
|
||||
self.set_untouchable()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue