Merge lp:~larsu/notify-osd/lp1303796 into lp:notify-osd
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Sebastien Bacher | ||||
Approved revision: | 497 | ||||
Merged at revision: | 498 | ||||
Proposed branch: | lp:~larsu/notify-osd/lp1303796 | ||||
Merge into: | lp:notify-osd | ||||
Diff against target: |
44 lines (+13/-2) 2 files modified
src/defaults.c (+5/-0) src/stack.c (+8/-2) |
||||
To merge this branch: | bzr merge lp:~larsu/notify-osd/lp1303796 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sebastien Bacher | Approve | ||
Review via email:
|
Commit message
Listen to xsettings dpi changes
We only listened to font scale factor changes on gsettings, but retrieved the actual value from xsettings (through gtk-xft-dpi). This is racy: unity-settings-
Fix this by listening to xsettings changes as well.
This means that we're now listening for both xsettings and gsettings changes for what is essentially the same thing and recalculate size on each of them. This creates some unnecessary work, but those settings are not changed very often. We can't only listen on xsettings, because there are other gsettings keys that might trigger a change in notification bubble appearance.
Description of the change
Listen to xsettings font size changes in addition to the gsettings ones.
We still don't update the position and size of the bubble itself when a notification bubble is shown while the font settings are changed. This is ugly, but fixing it would require quite a bit of a refactor that might not be worth it.
looks good, thanks!