#include <x11extras.h>
|
void | checkPropertyOnWin (bool windowCorrected, Window &window, Window &parent, Window &finalwindow, Window &root, Window *children, Display *display, unsigned int &num_children) |
|
void | freeDisplay () |
|
void | checkFeedback (XFeedbackState *temp, int &num_feedbacks, int &feedback_id) |
|
void | findVirtualPtr (int num_devices, XIDeviceInfo *current_devices, XIDeviceInfo *mouse_device, XIDeviceInfo *all_devices, QString pointerName) |
|
◆ ~X11Extras()
X11Extras::~X11Extras |
( |
| ) |
|
Close display connection if one exists.
◆ X11Extras()
X11Extras::X11Extras |
( |
QObject * |
parent = nullptr | ) |
|
|
explicitprotected |
◆ appRootWindow()
unsigned long X11Extras::appRootWindow |
( |
int |
screen = -1 | ) |
|
Return root window for a given X display.
- Parameters
-
Screen | number. If no value is passed, uses screen 1. |
- Returns
- XID of the window
◆ checkFeedback()
void X11Extras::checkFeedback |
( |
XFeedbackState * |
temp, |
|
|
int & |
num_feedbacks, |
|
|
int & |
feedback_id |
|
) |
| |
|
private |
◆ checkPropertyOnWin()
void X11Extras::checkPropertyOnWin |
( |
bool |
windowCorrected, |
|
|
Window & |
window, |
|
|
Window & |
parent, |
|
|
Window & |
finalwindow, |
|
|
Window & |
root, |
|
|
Window * |
children, |
|
|
Display * |
display, |
|
|
unsigned int & |
num_children |
|
) |
| |
|
private |
◆ closeDisplay()
void X11Extras::closeDisplay |
( |
| ) |
|
◆ deleteInstance()
void X11Extras::deleteInstance |
( |
| ) |
|
|
static |
◆ display()
Display * X11Extras::display |
( |
| ) |
|
Get display instance.
- Returns
- Display struct
◆ findClientWindow()
Window X11Extras::findClientWindow |
( |
Window |
window | ) |
|
Find the proper client window within a hierarchy. This check is needed in some environments where the window that has been selected is actually a child to a transparent parent window which was the one that was actually grabbed.
- Parameters
-
- Returns
- Client window XID or 0 if no appropriate window was found
◆ findParentClient()
Window X11Extras::findParentClient |
( |
Window |
window | ) |
|
◆ findVirtualPtr()
void X11Extras::findVirtualPtr |
( |
int |
num_devices, |
|
|
XIDeviceInfo * |
current_devices, |
|
|
XIDeviceInfo * |
mouse_device, |
|
|
XIDeviceInfo * |
all_devices, |
|
|
QString |
pointerName |
|
) |
| |
|
private |
◆ freeDisplay()
void X11Extras::freeDisplay |
( |
| ) |
|
|
private |
◆ getApplicationLocation()
QString X11Extras::getApplicationLocation |
( |
int |
pid | ) |
|
Find the application file location for a given PID.
- Parameters
-
- Returns
- File location of application
◆ getApplicationPid()
int X11Extras::getApplicationPid |
( |
Window |
window | ) |
|
Check window and any parents for the window property "_NET_WM_PID".
- Parameters
-
Window | XID for window of interest |
- Returns
- PID of the application instance corresponding to the window
◆ getDisplayString()
QString X11Extras::getDisplayString |
( |
QString |
xcodestring | ) |
|
Get appropriate alias for a known KeySym string that might be blank or contain invalid characters when returned from X.
- Parameters
-
QString | representation of a KeySym string |
- Returns
- Alias string or a blank QString if no alias was found
◆ getEnvVariable()
const char * X11Extras::getEnvVariable |
( |
const char * |
var | ) |
const |
◆ getGroup1KeySym()
int X11Extras::getGroup1KeySym |
( |
int |
virtualkey | ) |
|
◆ getInstance()
◆ getKnownAliases()
const QHash< QString, QString > & X11Extras::getKnownAliases |
( |
| ) |
|
◆ getPointInformation() [1/2]
◆ getPointInformation() [2/2]
◆ getPos
QPoint X11Extras::getPos |
( |
| ) |
|
|
slot |
◆ getWindowClass()
QString X11Extras::getWindowClass |
( |
Window |
window | ) |
|
◆ getWindowInFocus()
unsigned long X11Extras::getWindowInFocus |
( |
| ) |
|
◆ getWindowTitle()
QString X11Extras::getWindowTitle |
( |
Window |
window | ) |
|
◆ getXDisplayString()
QString X11Extras::getXDisplayString |
( |
| ) |
|
|
static |
Get QString representation of currently utilized X display.
- Returns
◆ hasValidDisplay()
bool X11Extras::hasValidDisplay |
( |
| ) |
|
◆ isWindowRelevant()
bool X11Extras::isWindowRelevant |
( |
Display * |
display, |
|
|
Window |
window |
|
) |
| |
|
protected |
Go through a window's properties and search for an Atom from a defined list. If an Atom is found in a window's properties, that window should be considered relevant and one that should be grabbed.
- Parameters
-
- Returns
- If a window has a relevant Atom in its properties.
◆ populateKnownAliases()
void X11Extras::populateKnownAliases |
( |
| ) |
|
|
protected |
◆ setCustomDisplay()
void X11Extras::setCustomDisplay |
( |
QString |
displayString | ) |
|
|
static |
◆ windowHasProperty()
bool X11Extras::windowHasProperty |
( |
Display * |
display, |
|
|
Window |
window, |
|
|
Atom |
atom |
|
) |
| |
|
protected |
◆ windowIsViewable()
bool X11Extras::windowIsViewable |
( |
Display * |
display, |
|
|
Window |
window |
|
) |
| |
|
protected |
◆ x11ResetMouseAccelerationChange() [1/2]
void X11Extras::x11ResetMouseAccelerationChange |
( |
| ) |
|
◆ x11ResetMouseAccelerationChange() [2/2]
void X11Extras::x11ResetMouseAccelerationChange |
( |
QString |
pointerName | ) |
|
◆ _display
Display* X11Extras::_display |
|
private |
◆ _instance
◆ knownAliases
QHash<QString, QString> X11Extras::knownAliases |
|
private |
The documentation for this class was generated from the following files: