Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Modifiers in xdg_shell do not work #290

Closed
saboteurspk opened this issue Mar 8, 2019 · 2 comments
Closed

Modifiers in xdg_shell do not work #290

saboteurspk opened this issue Mar 8, 2019 · 2 comments

Comments

@saboteurspk
Copy link
Contributor

I was trying the xdg_shell_v6_test example. But modifier keys (shift, etc.) do not work for weston-terminal that could be opened by pressing F1 key.
I was looking into keyboard handling in Sway and it seems, that there are two lines missing in keyboard handling:

#[dehandle] let keyboard = state.keyboard.clone().unwrap();
seat.set_keyboard(keyboard.input_device());

But even after this the modifier keys do not work. Any help? :) Thank You

@Timidger
Copy link
Member

Timidger commented Mar 8, 2019

Yep they don't work because when that example was made it was made to show that only the basic features of xdg shell worked.

There should be a call to send_modifiers in the on key callback. That tells the client what modifiers are currently being used.

@saboteurspk
Copy link
Contributor Author

Thank You, works like a charm, I've done a PR for this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants