Windows: Dont steal focus on notification

This commit is contained in:
Philipp Hörist 2019-03-16 16:06:00 +01:00
parent 05dc004448
commit 6ef3b8e01b
1 changed files with 2 additions and 0 deletions

View File

@ -232,6 +232,8 @@ class PopupNotification(Gtk.Window):
icon_name=None, title=None, text=None, timeout=-1):
Gtk.Window.__init__(self)
self.set_type_hint(Gdk.WindowTypeHint.NOTIFICATION)
self.set_focus_on_map(False)
self.set_accept_focus(False)
self.set_name('NotificationPopup')
self.set_skip_taskbar_hint(True)
self.set_decorated(False)