~larsu/notify-osd/1520667

Viewing all changes in revision 498.

  • Committer: CI Train Bot
  • Author(s): Lars Uebernickel
  • Date: 2015-11-12 08:51:08 UTC
  • mfrom: (496.1.1 trunk)
  • Revision ID: ci-train-bot@canonical.com-20151112085108-5kyg7qfo227r9tr7
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-daemon also listens to gsettings and might not have set the xsettings value when our handler is run.

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. Fixes: #1303796
Approved by: Sebastien Bacher

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: