Tadeo Kondrak
c88f7ad1d0
text_input: Only send surrounding_text and content_type if supported
2021-02-15 16:45:35 -05:00
Tadeo Kondrak
b0e8f4ade2
text_input: Ignore text_input disable from unfocused windows
...
Before this commit, there would be cases where focus changes from one
window to another, the new window activates text_input, then the old
window sends a deactivate request, making text_input unfocused
completely.
2021-02-15 16:44:15 -05:00
Andri Yngvason
98eece53ad
input: Clean up input_method_relay in seat_destoy()
...
This fixes a crash that happens when input_method_new or text_method_new
events are emitted after the seat has been freed.
2021-01-01 19:02:56 +01:00
Leo
3c96a1d374
im: Fix crash when im destorying and no focused surface exists
2020-04-04 11:42:04 +02:00
xdavidwu
e6805ce6e9
im: remove listener on pending surface destoryed
2020-04-04 11:42:04 +02:00
xdavidwu
4e1e5e4e33
im: make text-input listeners per text-input
2020-04-04 11:42:04 +02:00
xdavidwu
9d455b48e4
input-method: avoid and log unneeded set_focus
2020-04-04 11:42:04 +02:00
xdavidwu
1241b42c88
input-method: remove surface listener before set
...
This make sure pending focused surface listener is not reachable from
old surface.
2020-04-04 11:42:04 +02:00
xdavidwu
5886187c6e
Port input method and text input from rootston
...
This ports swaywm/wlroots#1203 , swaywm/wlroots#1303 ,
swaywm/wlroots#1308 , swaywm/wlroots#1759 rootston part to sway.
Co-Authored-By: Leo Chen <leo881003@gmail.com>
2020-04-04 11:42:04 +02:00