File indexing completed on 2024-05-05 05:39:02

0001 /* Wrap XLIB code in a new file as it defines keywords that conflict with Qt
0002 
0003     SPDX-FileCopyrightText: 2017 David Edmundson <davidedmundson@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-or-later
0006 */
0007 
0008 #include "xtestsender.h"
0009 #include <X11/extensions/XTest.h>
0010 
0011 void sendXTestPressed(Display *display, int button)
0012 {
0013     XTestFakeButtonEvent(display, button, true, 0);
0014 }
0015 
0016 void sendXTestReleased(Display *display, int button)
0017 {
0018     XTestFakeButtonEvent(display, button, false, 0);
0019 }