text: Move input_panel interface to input-method
Move the input_panel interface from desktop-shell to input-method (since it is not really tied to desktop-shell). Add an input_panel_surface interface like wl_shell_surface to make it easier to extend it. Also add a parameter to the set_toplevel request to be able to specify where to show an input panel surface on the screen. Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
This commit is contained in:
committed by
Kristian Høgsberg
parent
23ccfb3ef9
commit
ffbb20f730
@@ -98,22 +98,4 @@
|
||||
</request>
|
||||
|
||||
</interface>
|
||||
|
||||
<interface name="input_panel" version="1">
|
||||
<description summary="interface for implementing keyboards">
|
||||
Only one client can bind this interface at a time.
|
||||
</description>
|
||||
|
||||
<request name="set_surface">
|
||||
<description summary="set the surface type as a keyboard">
|
||||
A keybaord surface is only shown, when a text model is active
|
||||
</description>
|
||||
|
||||
<arg name="surface" type="object" interface="wl_surface"/>
|
||||
<arg name="output" type="object" interface="wl_output"/>
|
||||
</request>
|
||||
|
||||
</interface>
|
||||
|
||||
|
||||
</protocol>
|
||||
|
||||
@@ -157,4 +157,28 @@
|
||||
<arg name="context" type="object" interface="input_method_context"/>
|
||||
</event>
|
||||
</interface>
|
||||
|
||||
<interface name="input_panel" version="1">
|
||||
<description summary="interface for implementing keyboards">
|
||||
Only one client can bind this interface at a time.
|
||||
</description>
|
||||
|
||||
<request name="get_input_panel_surface">
|
||||
<arg name="id" type="new_id" interface="input_panel_surface"/>
|
||||
<arg name="surface" type="object" interface="wl_surface"/>
|
||||
</request>
|
||||
</interface>
|
||||
|
||||
<interface name="input_panel_surface" version="1">
|
||||
<enum name="position">
|
||||
<entry name="center_bottom" value="0"/>
|
||||
</enum>
|
||||
|
||||
<request name="set_toplevel">
|
||||
<description summary="set the surface type as a keyboard">
|
||||
A keybaord surface is only shown, when a text model is active
|
||||
</description>
|
||||
<arg name="position" type="uint"/>
|
||||
</request>
|
||||
</interface>
|
||||
</protocol>
|
||||
|
||||
Reference in New Issue
Block a user