Commit graph

6 commits

Author SHA1 Message Date
Richard Acayan
78f389beaa treewide: use Rust 2018 import paths
Rust 2018 is required for D-Bus support with tokio/zbus.
2024-07-24 22:32:00 -04:00
Richard Acayan
e41ce7ed56 wayland: dispatcher: warn on wl_compositor event
Be consistent with other object events.
2024-07-24 22:32:00 -04:00
Richard Acayan
5fc4cd9e58 wayland: dispatcher: release buffers when requested 2024-07-24 22:32:00 -04:00
Richard Acayan
a9f3010076 wayland: dispatcher: listen for input method (de-)activate events
Hide the keyboard by default and show it when the user is in some text
field.
2024-07-24 22:32:00 -04:00
Richard Acayan
b5d09e655b wayland: surface: add show/hide functionality
While the keyboard is running, it may want to automatically show or hide
itself depending on whether a text input is active. Add functions to
show and hide the surface by destroying and re-creating it.

Phosh's compositor, phoc, does not emit configure events in reaction to
a surface being committed with no buffer attached. The complicated
surface creation/destruction process is for compatibility with phoc.
2024-07-24 22:31:59 -04:00
Richard Acayan
4a6b261be0 rewrite in rust 2024-07-18 20:32:55 -04:00