Conditional set_bypass_compositor.

This commit is contained in:
Brandon Wright 2018-10-15 14:31:42 -05:00
parent 3829408d3d
commit 34268314c4

View File

@ -1684,12 +1684,14 @@ Snes9xWindow::get_auto_input_rate (void)
return new_input_rate;
}
#ifdef GDK_WINDOWING_X11
static void set_bypass_compositor (Display *dpy, Window window, unsigned char bypass)
{
uint32 value = bypass;
Atom net_wm_bypass_compositor = XInternAtom (dpy, "_NET_WM_BYPASS_COMPOSITOR", False);
XChangeProperty (dpy, window, net_wm_bypass_compositor, XA_CARDINAL, 32, PropModeReplace, (const unsigned char *) &value, 1);
}
#endif
void
Snes9xWindow::enter_fullscreen_mode (void)