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
722278f3
Commit
722278f3
authored
Jan 02, 2026
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed swiping notification in CC delaying removal due to playing animation
parent
fb9d0b01
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
notificationGroup.vala
src/notificationGroup/notificationGroup.vala
+3
-1
No files found.
src/notificationGroup/notificationGroup.vala
View file @
722278f3
...
@@ -382,9 +382,10 @@ namespace SwayNotificationCenter {
...
@@ -382,9 +382,10 @@ namespace SwayNotificationCenter {
urgent_notifications
.
clear
();
urgent_notifications
.
clear
();
notification_ids
.
clear
();
notification_ids
.
clear
();
// Skip animation if the notification was dismissed by swipe
bool
dismissed_by_swipe
=
this
.
dismissed_by_swipe
;
bool
dismissed_by_swipe
=
this
.
dismissed_by_swipe
;
if
(
state
==
NotificationGroupState
.
SINLGE
)
{
if
(
state
==
NotificationGroupState
.
SINLGE
)
{
unowned
Notification
?
noti
=
get_latest_notification
();
unowned
Notification
?
noti
=
(
Notification
?)
group
.
get_first_widget
();
if
(
noti
!=
null
)
{
if
(
noti
!=
null
)
{
dismissed_by_swipe
|=
noti
.
dismissed_by_swipe
;
dismissed_by_swipe
|=
noti
.
dismissed_by_swipe
;
}
}
...
@@ -413,6 +414,7 @@ namespace SwayNotificationCenter {
...
@@ -413,6 +414,7 @@ namespace SwayNotificationCenter {
ClosedReasons
.
DISMISSED
);
ClosedReasons
.
DISMISSED
);
}
}
/** Gets the latest, non-dismissed notification */
public
unowned
Notification
?
get_latest_notification
()
{
public
unowned
Notification
?
get_latest_notification
()
{
return
(
Notification
?)
group
.
get_first_widget
((
widget
)
=>
{
return
(
Notification
?)
group
.
get_first_widget
((
widget
)
=>
{
unowned
Notification
?
notification
=
(
Notification
?)
widget
;
unowned
Notification
?
notification
=
(
Notification
?)
widget
;
...
...
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