Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-notification-center
Commits
2083415e
Commit
2083415e
authored
Feb 10, 2026
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed segfault when displaying notification + new monitor is mapped
parent
5228963a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
main.vala
src/main.vala
+1
-0
notificationWindow.vala
src/notificationWindow/notificationWindow.vala
+7
-5
No files found.
src/main.vala
View file @
2083415e
...
@@ -146,6 +146,7 @@ namespace SwayNotificationCenter {
...
@@ -146,6 +146,7 @@ namespace SwayNotificationCenter {
notifications_widget
=
new
Widgets
.
Notifications
();
notifications_widget
=
new
Widgets
.
Notifications
();
control_center
=
new
ControlCenter
();
control_center
=
new
ControlCenter
();
add_window
(
floating_notifications
);
add_window
(
control_center
);
add_window
(
control_center
);
noti_daemon
.
on_dnd_toggle
.
connect
((
dnd
)
=>
{
noti_daemon
.
on_dnd_toggle
.
connect
((
dnd
)
=>
{
...
...
src/notificationWindow/notificationWindow.vala
View file @
2083415e
...
@@ -46,11 +46,6 @@ namespace SwayNotificationCenter {
...
@@ -46,11 +46,6 @@ namespace SwayNotificationCenter {
});
});
this
.
unmap
.
connect
(()
=>
{
this
.
unmap
.
connect
(()
=>
{
debug
(
"NotificationWindow un-mapped"
);
debug
(
"NotificationWindow un-mapped"
);
// Destroy the wl_surface to get a new "enter-monitor" signal and
// fixes issues where keyboard shortcuts stop working after clearing
// all notifications.
((
Gtk
.
Widget
)
this
).
unrealize
();
});
});
// TODO: Make option
// TODO: Make option
...
@@ -303,6 +298,13 @@ namespace SwayNotificationCenter {
...
@@ -303,6 +298,13 @@ namespace SwayNotificationCenter {
}
}
}
}
if
(!
visible
)
{
// Destroy the wl_surface to get a new "enter-monitor" signal and
// fixes issues where keyboard shortcuts stop working after clearing
// all notifications.
((
Gtk
.
Widget
)
this
).
unrealize
();
}
set_visible
(
true
);
set_visible
(
true
);
list
.
append
.
begin
(
noti
);
list
.
append
.
begin
(
noti
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment