mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04:00
Force sync and finishing of pending requests before shutting disconnecting from X11 #576
This commit is contained in:
parent
30026ea0a7
commit
904ab9eafc
1 changed files with 4 additions and 1 deletions
|
@ -36,6 +36,7 @@
|
||||||
#include <cairo-xcb.h>
|
#include <cairo-xcb.h>
|
||||||
|
|
||||||
#include <xcb/xcb.h>
|
#include <xcb/xcb.h>
|
||||||
|
#include <xcb/xcb_aux.h>
|
||||||
#include <xcb/randr.h>
|
#include <xcb/randr.h>
|
||||||
#include <xcb/xinerama.h>
|
#include <xcb/xinerama.h>
|
||||||
#include <xcb/xcb_ewmh.h>
|
#include <xcb/xcb_ewmh.h>
|
||||||
|
@ -891,8 +892,10 @@ void xcb_stuff_wipe ( xcb_stuff *xcb )
|
||||||
xcb->sndisplay = NULL;
|
xcb->sndisplay = NULL;
|
||||||
}
|
}
|
||||||
x11_monitors_free ();
|
x11_monitors_free ();
|
||||||
xcb_disconnect ( xcb->connection );
|
|
||||||
xcb_ewmh_connection_wipe ( &( xcb->ewmh ) );
|
xcb_ewmh_connection_wipe ( &( xcb->ewmh ) );
|
||||||
|
xcb_flush ( xcb->connection );
|
||||||
|
xcb_aux_sync ( xcb->connection );
|
||||||
|
xcb_disconnect ( xcb->connection );
|
||||||
xcb->connection = NULL;
|
xcb->connection = NULL;
|
||||||
xcb->screen = NULL;
|
xcb->screen = NULL;
|
||||||
xcb->screen_nbr = 0;
|
xcb->screen_nbr = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue