XCBify X{Unm,M}apWindow
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
6a8df0ada7
commit
3c5d7555a4
|
@ -1995,7 +1995,7 @@ map_win(session_t *ps, Window id) {
|
||||||
// Unmap overlay window if it got mapped but we are currently not
|
// Unmap overlay window if it got mapped but we are currently not
|
||||||
// in redirected state.
|
// in redirected state.
|
||||||
if (ps->overlay && id == ps->overlay && !ps->redirected) {
|
if (ps->overlay && id == ps->overlay && !ps->redirected) {
|
||||||
XUnmapWindow(ps->dpy, ps->overlay);
|
xcb_unmap_window(c, ps->overlay);
|
||||||
XFlush(ps->dpy);
|
XFlush(ps->dpy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4550,7 +4550,7 @@ init_overlay(session_t *ps) {
|
||||||
|
|
||||||
// Unmap overlay, firstly. But this typically does not work because
|
// Unmap overlay, firstly. But this typically does not work because
|
||||||
// the window isn't created yet.
|
// the window isn't created yet.
|
||||||
// XUnmapWindow(ps->dpy, ps->overlay);
|
// xcb_unmap_window(c, ps->overlay);
|
||||||
// XFlush(ps->dpy);
|
// XFlush(ps->dpy);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -4626,7 +4626,7 @@ redir_start(session_t *ps) {
|
||||||
// Map overlay window. Done firstly according to this:
|
// Map overlay window. Done firstly according to this:
|
||||||
// https://bugzilla.gnome.org/show_bug.cgi?id=597014
|
// https://bugzilla.gnome.org/show_bug.cgi?id=597014
|
||||||
if (ps->overlay)
|
if (ps->overlay)
|
||||||
XMapWindow(ps->dpy, ps->overlay);
|
xcb_map_window(c, ps->overlay);
|
||||||
|
|
||||||
xcb_composite_redirect_subwindows(c, ps->root, XCB_COMPOSITE_REDIRECT_MANUAL);
|
xcb_composite_redirect_subwindows(c, ps->root, XCB_COMPOSITE_REDIRECT_MANUAL);
|
||||||
|
|
||||||
|
@ -4669,7 +4669,7 @@ redir_stop(session_t *ps) {
|
||||||
xcb_composite_unredirect_subwindows(c, ps->root, XCB_COMPOSITE_REDIRECT_MANUAL);
|
xcb_composite_unredirect_subwindows(c, ps->root, XCB_COMPOSITE_REDIRECT_MANUAL);
|
||||||
// Unmap overlay window
|
// Unmap overlay window
|
||||||
if (ps->overlay)
|
if (ps->overlay)
|
||||||
XUnmapWindow(ps->dpy, ps->overlay);
|
xcb_unmap_window(c, ps->overlay);
|
||||||
|
|
||||||
// Must call XSync() here
|
// Must call XSync() here
|
||||||
XSync(ps->dpy, False);
|
XSync(ps->dpy, False);
|
||||||
|
|
Loading…
Reference in New Issue