mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-12 02:05:54 +00:00
20 lines
483 B
C++
20 lines
483 B
C++
|
/* 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);
|
||
|
}
|