kwin/decorations
Vlad Zagorodniy 80da18a143 [decorations] Emit DecorationSettings::fontChanged signal
Summary:
No one emits DecorationSettings::fontChanged signal, so if you change
the window title font, then titlebars might look differently after reboot.

Currently, there are two places where we can emit that signal:
- in KDecoration library itself;
- and in KWin.

Because we would need to listen for a Plasma specific D-Bus signal, the
latter option is preferable.

Surprisingly, KWin's implementation of DecorationSettingsPrivate already
reacts to refreshFonts D-Bus signal (even though indirectly), so all
what we have to do is get the current window title font in
SettingsImpl::readSettings, and if it's different from the previous one,
emit DecorationSettings::fontChanged signal.

BUG: 400980
FIXED-IN: 5.15.0

Test Plan:
* Increased the size of the window title font, titlebars got bigger;
* Decreased the font size, titlebars got smaller.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D16908
2018-11-15 22:08:41 +02:00
..
decoratedclient.cpp [wayland] Use pending maximize mode in decoration updates 2018-10-07 17:52:34 +01:00
decoratedclient.h Hide decoration tooltip when the decoration gets destroyed 2018-06-10 09:18:51 +02:00
decorationbridge.cpp Add an explicit dependency to Breeze to find decoration plugin 2016-04-12 08:54:50 +02:00
decorationbridge.h DecorationBridge creates Decoration for AbstractClient 2015-12-18 16:41:49 +01:00
decorationpalette.cpp [decorations] Introduce logging category for decorations 2015-07-31 13:13:46 +02:00
decorationpalette.h Adapt to KDecoration API changes 2015-03-31 15:26:55 +02:00
decorationrenderer.cpp Render GL Window decorations at the correct scale 2017-11-01 17:59:11 +00:00
decorationrenderer.h Move the X11 Decoration Renderer into the X11 standalone platform 2017-09-01 17:49:32 +02:00
decorations_logging.cpp pedantic fixes 2016-07-16 13:14:44 -04:00
decorations_logging.h [decorations] Introduce logging category for decorations 2015-07-31 13:13:46 +02:00
settings.cpp [decorations] Emit DecorationSettings::fontChanged signal 2018-11-15 22:08:41 +02:00
settings.h [decorations] Emit DecorationSettings::fontChanged signal 2018-11-15 22:08:41 +02:00