Add key events to the window event mask
This commit is contained in:
parent
3af06e9665
commit
8555dc0c37
1 changed files with 4 additions and 1 deletions
|
@ -70,7 +70,10 @@ impl Gui {
|
||||||
screen.root_visual(),
|
screen.root_visual(),
|
||||||
&[
|
&[
|
||||||
(xcb::CW_OVERRIDE_REDIRECT, 1),
|
(xcb::CW_OVERRIDE_REDIRECT, 1),
|
||||||
(xcb::CW_EVENT_MASK, evt_mask),
|
(
|
||||||
|
xcb::CW_EVENT_MASK,
|
||||||
|
evt_mask | xcb::EVENT_MASK_KEY_PRESS | xcb::EVENT_MASK_KEY_RELEASE,
|
||||||
|
),
|
||||||
(xcb::CW_CURSOR, cursor),
|
(xcb::CW_CURSOR, cursor),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue