849 |
g_display = NULL; |
g_display = NULL; |
850 |
} |
} |
851 |
|
|
|
#define NULL_POINTER_MASK "\x80" |
|
|
#define NULL_POINTER_DATA "\x0\x0\x0" |
|
|
|
|
852 |
BOOL |
BOOL |
853 |
ui_create_window(void) |
ui_create_window(void) |
854 |
{ |
{ |
855 |
|
uint8 null_pointer_mask[1] = { 0x80 }; |
856 |
|
uint8 null_pointer_data[4] = { 0x00, 0x00, 0x00, 0x00 }; |
857 |
XSetWindowAttributes attribs; |
XSetWindowAttributes attribs; |
858 |
XClassHint *classhints; |
XClassHint *classhints; |
859 |
XSizeHints *sizehints; |
XSizeHints *sizehints; |
936 |
XSetWMProtocols(g_display, g_wnd, &g_kill_atom, 1); |
XSetWMProtocols(g_display, g_wnd, &g_kill_atom, 1); |
937 |
|
|
938 |
/* create invisible 1x1 cursor to be used as null cursor */ |
/* create invisible 1x1 cursor to be used as null cursor */ |
939 |
g_null_cursor = ui_create_cursor(0, 0, 1, 1, NULL_POINTER_MASK, NULL_POINTER_DATA); |
g_null_cursor = ui_create_cursor(0, 0, 1, 1, null_pointer_mask, null_pointer_data); |
940 |
|
|
941 |
return True; |
return True; |
942 |
} |
} |