43 |
static int g_x_socket; |
static int g_x_socket; |
44 |
static Screen *g_screen; |
static Screen *g_screen; |
45 |
Window g_wnd; |
Window g_wnd; |
46 |
|
uint32 g_embed_wnd; |
47 |
BOOL g_enable_compose = False; |
BOOL g_enable_compose = False; |
48 |
static GC g_gc = NULL; |
static GC g_gc = NULL; |
49 |
static Visual *g_visual; |
static Visual *g_visual; |
926 |
XFree(sizehints); |
XFree(sizehints); |
927 |
} |
} |
928 |
|
|
929 |
|
if ( g_embed_wnd ) |
930 |
|
{ |
931 |
|
XReparentWindow(g_display, g_wnd, (Window)g_embed_wnd, 0, 0); |
932 |
|
} |
933 |
|
|
934 |
input_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | |
input_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | |
935 |
VisibilityChangeMask | FocusChangeMask; |
VisibilityChangeMask | FocusChangeMask; |
936 |
|
|
1928 |
|
|
1929 |
SET_FOREGROUND(bgcolour); |
SET_FOREGROUND(bgcolour); |
1930 |
|
|
1931 |
|
/* Sometimes, the boxcx value is something really large, like |
1932 |
|
32691. This makes XCopyArea fail with Xvnc. The code below |
1933 |
|
is a quick fix. */ |
1934 |
|
if (boxx + boxcx > g_width) |
1935 |
|
boxcx = g_width - boxx; |
1936 |
|
|
1937 |
if (boxcx > 1) |
if (boxcx > 1) |
1938 |
{ |
{ |
1939 |
FILL_RECTANGLE_BACKSTORE(boxx, boxy, boxcx, boxcy); |
FILL_RECTANGLE_BACKSTORE(boxx, boxy, boxcx, boxcy); |