After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 696339 - sort out object model for keymaps
sort out object model for keymaps
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Wayland
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-03-21 22:20 UTC by Matthias Clasen
Modified: 2013-03-23 22:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2013-03-21 22:20:19 UTC
This is required for giving the Wayland backend working keymap support.

The current gdk model is:

- a display has a single keymap
- the keymap has a keys-changed signal that informs you about mapping changes


In wayland:
- each keyboard device has a keymap
- the keymap object is replaced when the mapping changes


Some widgets, such as GtkEntry, obtain the keymap object once, and connect to state-changed and direction-changed events to keep track of changes. 

Thoughts so far:

- Giving each keyboard device its own keymap is reasonable. We can easily define the display-associated keymap to be the one associated with the core keyboard.

- Replacing the objects is not a great match for our existing code. I suggest to turn the object that is being replaced into an internal keymap->mapping object, and keep the actual keymap object the same for the lifetime of the device.