Blender  V2.93
Classes | Macros | Functions
GHOST_SystemX11.h File Reference
#include <X11/XKBlib.h>
#include <X11/Xlib.h>
#include "../GHOST_Types.h"
#include "GHOST_System.h"

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 *theEvent)
 
int GHOST_X11_ApplicationIOErrorHandler (Display *display)
 

Detailed Description

Declaration of GHOST_SystemX11 class.

Definition in file GHOST_SystemX11.h.

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_ApplicationIOErrorHandler(Display *display)
int GHOST_X11_ApplicationErrorHandler(Display *display, XErrorEvent *theEvent)

Definition at line 53 of file GHOST_SystemX11.h.

◆ 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 62 of file GHOST_SystemX11.h.

Function Documentation

◆ GHOST_X11_ApplicationErrorHandler()

int GHOST_X11_ApplicationErrorHandler ( Display *  display,
XErrorEvent *  event 
)

These callbacks can be used for debugging, so we can breakpoint 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 2520 of file GHOST_SystemX11.cpp.

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

Referenced by GHOST_SystemX11::GHOST_SystemX11().

◆ GHOST_X11_ApplicationIOErrorHandler()

int GHOST_X11_ApplicationIOErrorHandler ( Display *  display)