45 |
Window g_wnd; |
Window g_wnd; |
46 |
extern uint32 g_embed_wnd; |
extern uint32 g_embed_wnd; |
47 |
BOOL g_enable_compose = False; |
BOOL g_enable_compose = False; |
48 |
|
BOOL g_Unobscured; /* used for screenblt */ |
49 |
static GC g_gc = NULL; |
static GC g_gc = NULL; |
50 |
static Visual *g_visual; |
static Visual *g_visual; |
51 |
static int g_depth; |
static int g_depth; |
1006 |
XMaskEvent(g_display, VisibilityChangeMask, &xevent); |
XMaskEvent(g_display, VisibilityChangeMask, &xevent); |
1007 |
} |
} |
1008 |
while (xevent.type != VisibilityNotify); |
while (xevent.type != VisibilityNotify); |
1009 |
|
g_Unobscured = xevent.xvisibility.state == VisibilityUnobscured; |
1010 |
|
|
1011 |
g_focused = False; |
g_focused = False; |
1012 |
g_mouse_in_wnd = False; |
g_mouse_in_wnd = False; |
1105 |
|
|
1106 |
switch (xevent.type) |
switch (xevent.type) |
1107 |
{ |
{ |
1108 |
|
case VisibilityNotify: |
1109 |
|
g_Unobscured = xevent.xvisibility.state == VisibilityUnobscured; |
1110 |
|
break; |
1111 |
case ClientMessage: |
case ClientMessage: |
1112 |
/* the window manager told us to quit */ |
/* the window manager told us to quit */ |
1113 |
if ((xevent.xclient.message_type == g_protocol_atom) |
if ((xevent.xclient.message_type == g_protocol_atom) |
1854 |
SET_FUNCTION(opcode); |
SET_FUNCTION(opcode); |
1855 |
if (g_ownbackstore) |
if (g_ownbackstore) |
1856 |
{ |
{ |
1857 |
XCopyArea(g_display, g_backstore, g_wnd, g_gc, srcx, srcy, cx, cy, x, y); |
if (g_Unobscured) |
1858 |
XCopyArea(g_display, g_backstore, g_backstore, g_gc, srcx, srcy, cx, cy, x, y); |
{ |
1859 |
|
XCopyArea(g_display, g_wnd, g_wnd, g_gc, srcx, srcy, cx, cy, x, y); |
1860 |
|
XCopyArea(g_display, g_backstore, g_backstore, g_gc, srcx, srcy, cx, cy, x, y); |
1861 |
|
} |
1862 |
|
else |
1863 |
|
{ |
1864 |
|
XCopyArea(g_display, g_backstore, g_wnd, g_gc, srcx, srcy, cx, cy, x, y); |
1865 |
|
XCopyArea(g_display, g_backstore, g_backstore, g_gc, srcx, srcy, cx, cy, x, y); |
1866 |
|
} |
1867 |
} |
} |
1868 |
else |
else |
1869 |
{ |
{ |