ShootingStarDragons
4790391a02
chore: remove unused listener when im destoryed
2024-02-17 21:57:09 +08:00
ShootingStarDragons
329c2a74e9
chore: use data to find sway_layer_surface
2024-02-17 21:57:09 +08:00
ShootingStarDragons
e236ea4d1b
fix: popup cannot adjust with output size
2024-02-17 21:57:09 +08:00
ShootingStarDragons
9122372efb
chore: check bottom layershell as well
2024-02-17 21:57:09 +08:00
ShootingStarDragons
77343fde2b
chore: handle memory leaking
2024-02-17 21:57:09 +08:00
ShootingStarDragons
5725d3a170
chore: tidy up code
2024-02-17 21:57:09 +08:00
ShootingStarDragons
6ce09d0fa9
fix: coredump on layershell
2024-02-17 21:57:09 +08:00
ShootingStarDragons
2093f37212
chore: tidy up the position of popup
2024-02-17 21:57:09 +08:00
ShootingStarDragons
14f6847cc0
chore: use popup desc to place popup
2024-02-17 21:57:09 +08:00
ShootingStarDragons
b09db5b7a4
chore: assign SWAY_SCENE_DESC_VIEW to popup scene
2024-02-17 21:57:09 +08:00
ShootingStarDragons
f817c80779
chore: bind to root->layer_tree instead
2024-02-17 21:57:09 +08:00
ShootingStarDragons
47d0c48ab5
chore: remove unused code
2024-02-17 21:57:09 +08:00
ShootingStarDragons
06b73e175c
chore: destory scene when popup damaged
2024-02-17 21:57:09 +08:00
ShootingStarDragons
be9a30d555
Revert "fix: coredump when popup exist and close window"
...
since the popup is under root top, so the node will always exist, so
refresh is safe
This reverts commit d3bedbd63704c8a4f695a6a650e8440ae5c9593b.
2024-02-17 21:57:09 +08:00
ShootingStarDragons
c3e59098a8
fix: popup should always be the top
2024-02-17 21:57:09 +08:00
ShootingStarDragons
04d8ede33f
fix: coredump when popup exist and close window
2024-02-17 21:57:09 +08:00
ShootingStarDragons
d3cd3f0169
text_input: Implement input-method popups
...
origin one is the pr by tadeokondrak in pr 5890
Co-authored-by: tadeokondrak <me@tadeo.ca>
2024-02-17 21:57:09 +08:00
Alexander Gramiak
d6f279902a
sway/input: don't pass possibly invalid modifiers pointer
...
active_keyboard may be NULL, in which case an invalid pointer could be
passed to wlr_input_method_keyboard_grab_v2_send_modifiers. This
procedure call is unnecessary since wlroots commit 372a52ec "input
method: send modifiers in set_keyboard", so the call can simply be
removed.
Fixes #6836 .
2022-03-04 08:37:07 +01:00
xdavidwu
e5913f8106
Implement input method keyboard grab
2021-03-12 12:18:08 +01:00
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