2011-07-24 16:14:12 -04:00
|
|
|
#ifndef _XCB_H
|
|
|
|
#define _XCB_H
|
|
|
|
|
|
|
|
/* from X11/keysymdef.h */
|
|
|
|
#define XCB_NUM_LOCK 0xff7f
|
|
|
|
|
2011-07-27 07:28:32 -04:00
|
|
|
#define xmacro(atom) xcb_atom_t A_ ## atom;
|
|
|
|
#include "atoms.xmacro"
|
|
|
|
#undef xmacro
|
|
|
|
|
2011-07-24 16:14:12 -04:00
|
|
|
extern unsigned int xcb_numlock_mask;
|
2011-04-30 18:26:10 -04:00
|
|
|
|
|
|
|
xcb_window_t open_input_window(xcb_connection_t *conn, uint32_t width, uint32_t height);
|
|
|
|
int get_font_id(xcb_connection_t *conn, char *pattern, int *font_height);
|
2011-07-24 16:16:40 -04:00
|
|
|
/**
|
|
|
|
* Finds out which modifier mask is the one for numlock, as the user may change this.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void xcb_get_numlock_mask(xcb_connection_t *conn);
|
2011-07-24 16:14:12 -04:00
|
|
|
|
|
|
|
#endif
|