54 if (_hidden_cursor == None) {
57 return _hidden_cursor;
65 return (_XF86DGADirectVideo !=
nullptr);
73 if (_XF86DGADirectVideo !=
nullptr) {
74 x11display_cat.info() <<
"Enabling relative mouse using XF86DGA extension\n";
75 _XF86DGADirectVideo(_display, _screen, XF86DGADirectMouse);
86 if (_XF86DGADirectVideo !=
nullptr) {
87 x11display_cat.info() <<
"Disabling relative mouse using XF86DGA extension\n";
88 _XF86DGADirectVideo(_display, _screen, 0);
102 _x_error_messages_enabled =
false;
103 return _x_error_count;
114 _x_error_messages_enabled =
true;
115 return _x_error_count;
125 return _x_error_count;
XIM get_im() const
Returns the input method opened for the pipe, or NULL if the input method could not be opened for som...
static int disable_x_error_messages()
Globally disables the printing of error messages that are raised by the X11 system,...
X11_Window get_root() const
Returns the handle to the root window on the pipe's display.
static int enable_x_error_messages()
Reenables the printing of error messages after a previous call to disable_x_error_messages().
void disable_relative_mouse()
Disables relative mouse mode for this display.
int get_screen() const
Returns the X screen number associated with the pipe.
X11_Cursor get_hidden_cursor()
Returns an invisible Cursor suitable for assigning to windows that have the cursor_hidden property se...
X11_Display * get_display() const
Returns a pointer to the X display associated with the pipe: the display on which to create the windo...
bool supports_relative_mouse() const
Returns true if relative mouse mode is supported on this display.
bool enable_relative_mouse()
Enables relative mouse mode for this display.
static int get_x_error_count()
Returns the number of times an error indication has been raised by the X11 system since application s...