core: track whether server is grabbed

This commit is contained in:
Yuxuan Shui
2019-08-08 00:46:56 +01:00
parent 02139b7c9f
commit 4e915837a4
2 changed files with 10 additions and 1 deletions

View File

@ -158,6 +158,8 @@ typedef struct session {
struct ev_loop *loop;
// === Display related ===
/// Whether the X server is grabbed by us
bool server_grabbed;
/// Display in use.
Display *dpy;
/// Previous handler of X errors