File indexing completed on 2024-03-24 05:54:27
0001 /* 0002 SPDX-FileCopyrightText: 2012 Jekyll Wu <adaptee@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 // Own 0008 #include "WindowSystemInfo.h" 0009 0010 #include "config-konsole.h" 0011 0012 #include <QtGlobal> 0013 0014 #if HAVE_X11 0015 #include <KWindowSystem> 0016 #include <KX11Extras> 0017 #endif 0018 0019 using Konsole::WindowSystemInfo; 0020 0021 bool WindowSystemInfo::HAVE_TRANSPARENCY = false; 0022 0023 bool WindowSystemInfo::compositingActive() 0024 { 0025 #if HAVE_X11 0026 return !KWindowSystem::isPlatformX11() || KX11Extras::compositingActive(); 0027 #else 0028 return true; 0029 #endif 0030 }