/* # Copyright (c) 2009 - OpenSLX Project, Computer Center University of Freiburg # # This program is free software distributed under the GPL version 2. # See http://openslx.org/COPYING # # If you have any feedback please consult http://openslx.org/feedback and # send your suggestions, praise, or complaints to feedback@openslx.org # # General information about OpenSLX can be found at http://openslx.org/ # -------------------------------------------------------------------------- # x11FakeMouseHandler.h: # - Handle mouse events on X11 - implementation # -------------------------------------------------------------------------- */ #include "x11FakeMouseHandler.h" // need to include before X headers #include #include #include "x11InputUtils.h" void X11FakeMouseButtonHandler::doHandle(InputEvent const& evt, InputEventContext const*) { quint16 pressedButton = evt.pressedButton(); Display* dpy = X11InputUtils::display(); XTestGrabControl(dpy, 1); for(int i = 0; i < 16; i++) { if((1<