This commit is contained in:
2025-12-18 16:41:37 +08:00
commit 1940ef7547
18 changed files with 1771 additions and 0 deletions

19
xtestsender.cpp Normal file
View File

@@ -0,0 +1,19 @@
/* Wrap XLIB code in a new file as it defines keywords that conflict with Qt
SPDX-FileCopyrightText: 2017 David Edmundson <davidedmundson@kde.org>
SPDX-License-Identifier: LGPL-2.1-or-later
*/
#include "xtestsender.h"
#include <X11/extensions/XTest.h>
void sendXTestPressed(Display *display, int button)
{
XTestFakeButtonEvent(display, button, true, 0);
}
void sendXTestReleased(Display *display, int button)
{
XTestFakeButtonEvent(display, button, false, 0);
}