Files
konsole/src/WindowSystemInfo.cpp
Andreas Sturmlechner c5f2315c9d Drop faux X11 dependency and switch WITHOUT_X11 option to WITH_X11
X11 is nowhere needed in the codebase. Follow-up to 2f116f9fb2438a6e66b6702b3cc2ace9d0205f96

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-07-11 21:15:55 +00:00

31 lines
566 B
C++

/*
SPDX-FileCopyrightText: 2012 Jekyll Wu <adaptee@gmail.com>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
// Own
#include "WindowSystemInfo.h"
#include "config-konsole.h"
#include <QtGlobal>
#if WITH_X11
#include <KWindowSystem>
#include <KX11Extras>
#endif
using Konsole::WindowSystemInfo;
bool WindowSystemInfo::HAVE_TRANSPARENCY = false;
bool WindowSystemInfo::compositingActive()
{
#if WITH_X11
return !KWindowSystem::isPlatformX11() || KX11Extras::compositingActive();
#else
return true;
#endif
}