去掉对 xcb/xinput.h 的依赖,因为未使用到 xinput 扩展
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
#include <xcb/xcb_icccm.h>
|
||||
#include <xcb/xcb_image.h>
|
||||
#include <xcb/xinerama.h>
|
||||
#include <xcb/xinput.h>
|
||||
#include <xcb/xproto.h>
|
||||
|
||||
#include "app.h"
|
||||
@@ -187,7 +186,6 @@ static void init_ewmh_extension(void) {
|
||||
xcb_ewmh_set_supporting_wm_check(ewmh, wm_check_window, wm_check_window);
|
||||
|
||||
uint8_t mode = XCB_PROP_MODE_REPLACE;
|
||||
uint8_t format = XCB_INPUT_PROPERTY_FORMAT_32_BITS;
|
||||
xcb_atom_t atom = XCB_ATOM_ATOM;
|
||||
const xcb_atom_t state[] = {ewmh->_NET_WM_STATE_STICKY};
|
||||
const xcb_atom_t supported[] = {
|
||||
@@ -202,9 +200,9 @@ static void init_ewmh_extension(void) {
|
||||
ewmh->_NET_CLIENT_LIST,
|
||||
};
|
||||
xcb_change_property(conn, mode, wm_check_window, ewmh->_NET_WM_STATE, atom,
|
||||
format, LENGTH(state), state);
|
||||
xcb_change_property(conn, mode, screen->root, ewmh->_NET_SUPPORTED, atom,
|
||||
format, LENGTH(supported), supported);
|
||||
32, LENGTH(state), state);
|
||||
xcb_change_property(conn, mode, screen->root, ewmh->_NET_SUPPORTED, atom, 32,
|
||||
LENGTH(supported), supported);
|
||||
xcb_delete_property(conn, screen->root, ewmh->_NET_CLIENT_LIST);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user