Blender V4.3
GHOST_SystemX11.hh File Reference
#include <X11/XKBlib.h>
#include <X11/Xlib.h>
#include "../GHOST_Types.h"
#include "GHOST_System.hh"

Go to the source code of this file.

Classes

class  GHOST_SystemX11
 

Macros

#define GHOST_X11_ERROR_HANDLERS_OVERRIDE(var)
 
#define GHOST_X11_ERROR_HANDLERS_RESTORE(var)
 

Functions

int GHOST_X11_ApplicationErrorHandler (Display *display, XErrorEvent *event)
 
int GHOST_X11_ApplicationIOErrorHandler (Display *display)
 

Detailed Description

Declaration of GHOST_SystemX11 class.

Definition in file GHOST_SystemX11.hh.

Macro Definition Documentation

◆ GHOST_X11_ERROR_HANDLERS_OVERRIDE

#define GHOST_X11_ERROR_HANDLERS_OVERRIDE ( var)
Value:
struct { \
XErrorHandler handler; \
XIOErrorHandler handler_io; \
} var = { \
XSetErrorHandler(GHOST_X11_ApplicationErrorHandler), \
XSetIOErrorHandler(GHOST_X11_ApplicationIOErrorHandler), \
}
int GHOST_X11_ApplicationErrorHandler(Display *display, XErrorEvent *event)
int GHOST_X11_ApplicationIOErrorHandler(Display *display)

Definition at line 38 of file GHOST_SystemX11.hh.

Referenced by GHOST_ContextGLX::initializeDrawingContext().

◆ GHOST_X11_ERROR_HANDLERS_RESTORE

#define GHOST_X11_ERROR_HANDLERS_RESTORE ( var)
Value:
{ \
(void)XSetErrorHandler(var.handler); \
(void)XSetIOErrorHandler(var.handler_io); \
} \
((void)0)

Definition at line 47 of file GHOST_SystemX11.hh.

Referenced by GHOST_ContextGLX::initializeDrawingContext().

Function Documentation

◆ GHOST_X11_ApplicationErrorHandler()

int GHOST_X11_ApplicationErrorHandler ( Display * display,
XErrorEvent * event )

These callbacks can be used for debugging, so we can break-point on an X11 error.

Dummy function to get around IO Handler exiting if device invalid Basically it will not crash blender now if you have a X device that is configured but not plugged in.

Definition at line 2635 of file GHOST_SystemX11.cc.

References GHOST_ISystem::getSystem(), and GHOST_ISystem::isDebugEnabled().

Referenced by GHOST_SystemX11::GHOST_SystemX11().

◆ GHOST_X11_ApplicationIOErrorHandler()

int GHOST_X11_ApplicationIOErrorHandler ( Display * display)