US intl dead keys not working in wayland (works fine in X11) #113724

Closed
opened 2023-10-14 18:32:28 +02:00 by Bertrand-Rubli · 7 comments

System Information
Operating system: Linux (Arch and SUSE Tumbleweed, KDE and Gnome)
Graphics card: AMD Radeon 7600

Blender Version
Broken: 3.6.1, 3.6.4, 3.6.5 RC, 4.0.0-beta
Worked:

Short description of error

Dead keys not working in wayland but ok in X11.

Exact steps for others to reproduce the error

When running blender with wayland and "US intl dead keys" keyboard layout, the dead keys are dead.

Expected behavior (works when running X11) :

"+ [space] should produce "
'+ [space] should produce '
"+a should produce ä
`+e should produce è
...

What i get in wayland is:

"+[space] produces [space]
'+[space] produces [space]
"+a produces a
`+e produces e
...

I can reproduce this on Arch (KDE) and Tumbleweed (KDE and Gnome).

My current workaround is to run blender X11 in a vm.

**System Information** Operating system: Linux (Arch and SUSE Tumbleweed, KDE and Gnome) Graphics card: AMD Radeon 7600 **Blender Version** Broken: 3.6.1, 3.6.4, 3.6.5 RC, 4.0.0-beta Worked: **Short description of error** Dead keys not working in wayland but ok in X11. **Exact steps for others to reproduce the error** When running blender with wayland and "US intl dead keys" keyboard layout, the dead keys are dead. Expected behavior (works when running X11) : "+ [space] should produce " '+ [space] should produce ' "+a should produce ä `+e should produce è ... What i get in wayland is: "+[space] produces [space] '+[space] produces [space] "+a produces a `+e produces e ... I can reproduce this on Arch (KDE) and Tumbleweed (KDE and Gnome). My current workaround is to run blender X11 in a vm.
Bertrand-Rubli added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2023-10-14 18:32:28 +02:00
Jesse Yurkovich added the
Platform
Linux
label 2023-10-15 09:39:14 +02:00
Author

Same problem in versions 3.6.1, 3.6.5 RC and 4.0.0 beta .

Same problem in versions 3.6.1, 3.6.5 RC and 4.0.0 beta .
Member

@ideasman42 , can you check?

@ideasman42 , can you check?

@Bertrand-Rubli hi, from what I can see X11 doesn't have explicit support for dead-keys, it may be that the X11 API's provide text from dead-keys were as the Wayland API don't.

Blender supports IME on Wayland, as of: a38a49b073.

From testing with GNOME, it looks as though dead-keys may be implemented using IME. In GNOME's "Keyboard" preferences, with the "Compose Key" set, this key prompts for further input so so [compose + a + ,] results in ą for example.

Could you check if this works on your system too?

@Bertrand-Rubli hi, from what I can see X11 doesn't have explicit support for dead-keys, it may be that the X11 API's provide text from dead-keys were as the Wayland API don't. Blender supports IME on Wayland, as of: a38a49b073f582a0f6ddcca392f2760afdc4d5ed. From testing with GNOME, it looks as though dead-keys may be implemented using IME. In GNOME's "Keyboard" preferences, with the "Compose Key" set, this key prompts for further input so so [`compose` + `a` + `,`] results in `ą` for example. Could you check if this works on your system too?
Campbell Barton added
Status
Needs Information from User
Interest
Wayland
and removed
Status
Needs Triage
labels 2023-10-19 09:14:47 +02:00
Author

Tested in vm running Tumbleweed, Gnome 45, Blender 4.1.0 latest.

I configured the compose key and tested it with standard and dead keys layout.
Everything works in gnome console, but unfortunately not in blender (tested in python console).

Sorry :(

Tested in vm running Tumbleweed, Gnome 45, Blender 4.1.0 latest. I configured the compose key and tested it with standard and dead keys layout. Everything works in gnome console, but unfortunately not in blender (tested in python console). Sorry :(

Would you be able to test with input fields (object name for e.g.).

The Python console doesn't support IME, but text fields do. If Wayland needs IME for dead-key support we might have to add IME support for other text input in Blender.

Would you be able to test with input fields (object name for e.g.). The Python console doesn't support IME, but text fields do. If Wayland needs IME for dead-key support we might have to add IME support for other text input in Blender.
Author

Tried with renaming objects and in search field.

Blender ignores the "Compose Key".

But i found that the "Alternate Characters Key" can be used to produce quotes and special characters in text fields and python console.

Tried with renaming objects and in search field. Blender ignores the "Compose Key". But i found that the "Alternate Characters Key" can be used to produce quotes and special characters in text fields and python console.
Blender Bot added
Status
Resolved
and removed
Status
Needs Information from User
labels 2023-10-20 05:01:34 +02:00

Committed dead-key support 57a5c6c4be for 4.0 (since this works in X11, it's a regression in functionality not to support this in Wayland too).

Supporting this functionality in GNOME was a bit confusing as dead keys use IME when available and fallback to xkb_compose_*, so there are two ways it can be supported.

Blender 4.0 only has dead-key support, 4.1 supports both dead-keys via a compose key & input methods (IME). This is needed for dead-keys to work in the console & text editor since IME is only used for Blender's text UI elements.

Committed dead-key support 57a5c6c4bea40e4a43a52dbe5a1b8c61d3e8544f for 4.0 (since this works in X11, it's a regression in functionality not to support this in Wayland too). Supporting this functionality in GNOME was a bit confusing as dead keys use IME when available and fallback to `xkb_compose_*`, so there are two ways it can be supported. Blender 4.0 only has dead-key support, 4.1 supports both dead-keys via a compose key & input methods (IME). This is needed for dead-keys to work in the console & text editor since IME is only used for Blender's text UI elements.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#113724
No description provided.