Skip to content

services/notifications: document tracked/urgency fields reference gaps - #942

Open
Sniegawa wants to merge 1 commit into
quickshell-mirror:masterfrom
Sniegawa:notification-tracked-documentation
Open

services/notifications: document tracked/urgency fields reference gaps#942
Sniegawa wants to merge 1 commit into
quickshell-mirror:masterfrom
Sniegawa:notification-tracked-documentation

Conversation

@Sniegawa

@Sniegawa Sniegawa commented Aug 7, 2026

Copy link
Copy Markdown

Notification.urgency - Added missing reference to NotificationUrgency enum

Notification.tracked - Updated description to inform user that NotificationServer may set this flag by itself. Also added a warning that if this flag is manually set to true, the notification will be destroyed only after the user explicitly expires/dismisses it or when the NotificationServer when it is notified by sender application.

In depth explanation of commit:
I've had some issues with RetainableLock and Retainable properties of Notification object, it would get destroyed after scope of onNotification. After some time I started digging in the source code and I stumbled upon the tracked flag which by manually changing to true made the NotificationManager not destroy the Notification object immediately after emitting it.

I think that previous description of the tracked field wasn't telling the user all useful information about that flag (especially that NotificationServer can set it to false).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant