Add ignore_dbusclose settings#732
Conversation
|
Some points: The notification spec has no concept of disallowing closing notifications, so to make this 'compliant' I'd choose to lie to the clients that the notification is actually closed, but keep it open.
Additionally please update the example |
|
Oh, I almost forgot the elephant in the room:
Can you please expand more into this? Does it happen on |
I just tried with master and cannot reproduce the problem, and switching back on this branch I cannot reproduce it anymore. And then I remember that I had an external screen connected when the problem occurred. Checking it again with an external screen and the problem happens also with master. I'll open a bug report. |
|
Note that I didn't call |
3c85de8 to
0761240
Compare
|
The CI fails on codecov timeout. Nothing I can do on my side. |
0761240 to
19a42e3
Compare
|
The changes look good. One thing left is that when a notification is closed, a warning is printed As for the docs, |
19a42e3 to
de33228
Compare
|
commits updated to edit the english according to review and remove the warning. |
src/queues.c
Outdated
|
|
||
|
|
||
| /* see queues.h */ | ||
| struct notification* queues_get_received_by_id(int id) |
There was a problem hiding this comment.
What does received mean in this context?
I'd say queues_get_by_id would be a shorter and more descriptive name.
There was a problem hiding this comment.
Hmmm I was trying to say that id was not looked for in all the queues…
queues_get_by_id would be a bit misleading as history queues is not used.
The best would probably to name the function queues_get_by_id and search in all queues. In our use case it won't change the looking time as we expect the id to be in one of the first two queues.
Would this be ok ?
There was a problem hiding this comment.
That's fine by me. Default history max is ~20 items so performance impact is negligible.
…ance The notification spec has no concept of disallowing closing notifications, so to make the ignore_dbusclose 'compliant' we choose to lie to the clients that the notification is actually closed, but keep it open. To do this, we send a NotificationClosed signal back (via signal_notification_closed which also call notification_invalidate_action)
This message has no real added value and is emitted every time a notification is closed when `ignore_dbuclose` is set.
bf90495 to
842a524
Compare
|
Thanks for the PR! And sorry for the delay in merging this. |
|
No problem. Thanks for your help. |
closes #731
However I was not able to test it because of X BadAtom error: