wayland_server: expose xx color management support by default

I'm confident in the implementation and (significant) upstream changes before the protocol
is released as wp-colormanagement-v1 are unlikely, so I think allowing apps to make use of
it in practice is okay at this point.

Once the upstream protocol is released, we'll still drop the xx variant though and apps will
have to use the wp protocol in order to make use of color management features.
This commit is contained in:
Xaver Hugl 2024-08-15 16:03:52 +02:00
parent 9e2326d3ac
commit f9b88ee2f3

View file

@ -515,9 +515,7 @@ bool WaylandServer::init()
new FrogColorManagementV1(m_display, m_display);
new PresentationTime(m_display, m_display);
if (qEnvironmentVariableIntValue("KWIN_ENABLE_XX_COLOR_MANAGEMENT")) {
m_xxColorManager = new XXColorManagerV4(m_display, m_display);
}
m_xxColorManager = new XXColorManagerV4(m_display, m_display);
m_xdgDialogWm = new KWin::XdgDialogWmV1Interface(m_display, m_display);
connect(m_xdgDialogWm, &KWin::XdgDialogWmV1Interface::dialogCreated, this, [this](KWin::XdgDialogV1Interface *dialog) {
if (auto window = findXdgToplevelWindow(dialog->toplevel()->surface())) {