hrg...@gmail.com
unread,Jan 11, 2022, 1:18:33 PM1/11/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, salem...@gmail.com, Chromium Extensions, tea
onDisplayChanged is triggered whenever the data given by system.display.getInfo() changes.
For example, the event will fire if you change your DPI settings or scaling factor, resolution, color depth, etc..
It will also fire when the desktop's work area changes due to toolbars or widgets being added or removed from the desktop.
If you want to detect when a monitor is being added or removed, you have to compare the data given by display.getInfo() with that of a previous call to the same function.