mirror of https://github.com/procxx/kepka.git
Fix decoration applying and trigger repainting on update
For some reason this is needed for newer Qt in flatpak
This commit is contained in:
parent
07c8aae225
commit
5180d31b40
|
@ -457,6 +457,8 @@ void MainWindow::initHook() {
|
|||
}
|
||||
#endif // !TDESKTOP_DISABLE_DBUS_INTEGRATION
|
||||
|
||||
updateWaylandDecorationColors();
|
||||
|
||||
style::PaletteChanged(
|
||||
) | rpl::start_with_next([=] {
|
||||
updateWaylandDecorationColors();
|
||||
|
@ -686,6 +688,9 @@ void MainWindow::updateWaylandDecorationColors() {
|
|||
windowHandle()->setProperty("__material_decoration_foregroundColor", st::titleFgActive->c);
|
||||
windowHandle()->setProperty("__material_decoration_backgroundInactiveColor", st::titleBg->c);
|
||||
windowHandle()->setProperty("__material_decoration_foregroundInactiveColor", st::titleFg->c);
|
||||
|
||||
// Trigger a QtWayland client-side decoration update
|
||||
windowHandle()->resize(windowHandle()->size());
|
||||
}
|
||||
|
||||
void MainWindow::LibsLoaded() {
|
||||
|
|
Loading…
Reference in New Issue