Skip to content

messageTray.js: Keep notifications queued while no monitor is connected - #14181

Open
dualfroz wants to merge 1 commit into
linuxmint:masterfrom
dualfroz:fix/12303-messagetray-no-monitor
Open

dualfroz wants to merge 1 commit into
linuxmint:masterfrom
dualfroz:fix/12303-messagetray-no-monitor

Conversation

@dualfroz

Copy link
Copy Markdown
Contributor

with the only screen off or unplugged, _showNotification shifted the notification off the queue and then threw on this._monitor.index, which is the TypeError from the log, so it never showed up and never made it to the tray. _updateState now does nothing while there is no primary monitor, and it gets re-run on monitors-changed, so whatever came in meanwhile shows up once the screen is back, closes #12303. the sound still plays when it actually gets shown, not while the screen is off. added a test for it next to the grouped window list one

_showNotification took the notification off the queue and then threw on
this._monitor.index when there was no monitor, so the notification was
dropped and never reached the tray applet either. Leave the queue alone
until a monitor exists and re-check it on monitors-changed.

Fixes linuxmint#12303
@mtwebster

Copy link
Copy Markdown
Member

No test please

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.

[notifications@cinnamon.org] notifications are lost when no screen is found

2 participants