Text input doesn't work in wayland session
Opened this issue · 3 comments
Steps to reproduce
- Select any text symbol
- Try to type text
Actual behavior
The text does not appear on the map. Keystrokes are processed and activate tools. For example G toggle the grid.
In the console output the message appears
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Expected behavior
The text is displayed on the map
Workaround
Run Mapper with command
$ XDG_SESSION_TYPE=x11 Mapper
Configuration
Mapper Version: master
Operating System: Linux, wayland session
Confirmed. When I click once in the map, text input does not work. However, if I doubleclick, text input works. @yevhenmazur, can you please confirm the doubleclick workaround?
Yes, after doubleclick text input works in my case also.
Thanks for the confirmation, Yevhem. The thing is that the text alignment popup takes over focus, so the main window does not receive the keystroke events. The second click (doesn't have to be exactly doubleclick) give the focus back to the main window.