Skip to content

Commit 4a9a92b

Browse files
committed
Fixed the floating notifications window sometimes not picking the currently focused monitor
1 parent 2438fae commit 4a9a92b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/notificationWindow/notificationWindow.vala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ namespace SwayNotificationCenter {
4646
});
4747
this.unmap.connect (() => {
4848
debug ("NotificationWindow un-mapped");
49+
50+
// Destroy the wl_surface to get a new "enter-monitor" signal and
51+
// fixes issues where keyboard shortcuts stop working after clearing
52+
// all notifications.
53+
((Gtk.Widget) this).unrealize ();
4954
});
5055

5156
// TODO: Make option

0 commit comments

Comments
 (0)