File indexing completed on 2024-04-28 11:46:56
0001 /* 0002 SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 #include <netwm.h> 0007 #include <xcb/xcb.h> 0008 0009 int main(int, char **) 0010 { 0011 xcb_connection_t *c = xcb_connect(nullptr, nullptr); 0012 Q_ASSERT(c); 0013 Q_ASSERT(!xcb_connection_has_error(c)); 0014 NETRootInfo rootInfo(c, NET::CurrentDesktop); 0015 rootInfo.currentDesktop(true); 0016 rootInfo.currentDesktop(false); 0017 0018 xcb_disconnect(c); 0019 0020 return 0; 0021 }