Convert some Xlib constants to xcb

And remove some Xlib headers

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2018-11-04 18:54:04 +00:00
parent 471f6f90ff
commit 2b0b7435df
6 changed files with 31 additions and 34 deletions

View File

@ -1437,7 +1437,7 @@ glx_has_context(session_t *ps) {
*/
static inline bool
win_is_focused_real(session_t *ps, const win *w) {
return IsViewable == w->a.map_state && ps->active_win == w;
return w->a.map_state == XCB_MAP_STATE_VIEWABLE && ps->active_win == w;
}
/**