Pass color scheme hint to Wayland compositor using window property
ClosedPublic

Authored by graesslin on Oct 13 2016, 7:34 AM.

Details

Summary

Setting a window property on a platform handle passes it to the
QtExtendedSurface interface and that way to the compositor.

Diff Detail

Repository
R135 Integration for Qt applications in Plasma
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 7369.Oct 13 2016, 7:34 AM
graesslin retitled this revision from to Pass color scheme hint to Wayland compositor using window property.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptOct 13 2016, 7:34 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sebas accepted this revision.Oct 16 2016, 2:55 PM
sebas added a reviewer: sebas.
This revision is now accepted and ready to land.Oct 16 2016, 2:55 PM
usta added a subscriber: usta.Oct 16 2016, 3:07 PM

In line 57 QCoreApplication -> QGuiApplication

src/platformtheme/kwaylandintegration.cpp
57 ↗(On Diff #7369)

QCoreApplication -> QGuiApplication

graesslin added inline comments.Oct 16 2016, 3:32 PM
src/platformtheme/kwaylandintegration.cpp
57 ↗(On Diff #7369)

this is completely unrelated code not touched in this change.

usta added inline comments.Oct 16 2016, 3:34 PM
src/platformtheme/kwaylandintegration.cpp
57 ↗(On Diff #7369)

#include <QCoreApplication> removed and #include <QGuiApplication added so isn't this also should be change ?

graesslin added inline comments.Oct 16 2016, 3:38 PM
src/platformtheme/kwaylandintegration.cpp
57 ↗(On Diff #7369)

no? We try to not change unrelated code. The include of QGuiApplication is due to the usage of QGuiApplication::topLevelWindows. For this code it doesn't make any difference whether it's QCoreApplication or QGuiApplication. So there is no need to change it. The code is correct and a change would clutter up the commit.

This revision was automatically updated to reflect the committed changes.