mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-04 14:33:47 +00:00
- disabled X backing store
This commit is contained in:
parent
c188457242
commit
f9ccb1dffc
@ -153,7 +153,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
#if ENABLE_DGA
|
#if ENABLE_DGA
|
||||||
// Fork out, so we can return from fullscreen mode when things get ugly
|
// Fork out, so we can return from fullscreen mode when things get ugly
|
||||||
XF86DGAForkApp(XDefaultScreen(x_display));
|
XF86DGAForkApp(DefaultScreen(x_display));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLE_GTK
|
#if ENABLE_GTK
|
||||||
|
@ -204,13 +204,11 @@ static bool init_window(int width, int height)
|
|||||||
wattr.event_mask = eventmask = win_eventmask;
|
wattr.event_mask = eventmask = win_eventmask;
|
||||||
wattr.background_pixel = black_pixel;
|
wattr.background_pixel = black_pixel;
|
||||||
wattr.border_pixel = black_pixel;
|
wattr.border_pixel = black_pixel;
|
||||||
wattr.backing_store = Always;
|
wattr.backing_store = NotUseful;
|
||||||
wattr.backing_planes = xdepth;
|
|
||||||
|
|
||||||
XSync(x_display, false);
|
XSync(x_display, false);
|
||||||
the_win = XCreateWindow(x_display, rootwin, 0, 0, width, height, 0, xdepth,
|
the_win = XCreateWindow(x_display, rootwin, 0, 0, width, height, 0, xdepth,
|
||||||
InputOutput, vis, CWEventMask | CWBackPixel | CWBorderPixel |
|
InputOutput, vis, CWEventMask | CWBackPixel | CWBorderPixel | CWBackingStore, &wattr);
|
||||||
CWBackingStore | CWBackingPlanes, &wattr);
|
|
||||||
XSync(x_display, false);
|
XSync(x_display, false);
|
||||||
XStoreName(x_display, the_win, GetString(STR_WINDOW_TITLE));
|
XStoreName(x_display, the_win, GetString(STR_WINDOW_TITLE));
|
||||||
XMapRaised(x_display, the_win);
|
XMapRaised(x_display, the_win);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user