mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2024-11-05 08:21:10 +00:00
6c5829d949
We need to handle a mouse that is not absolute positioned (the default it seems) and this does that (crudely for the moment until we have some sort of grab management). Additionally, click events are propagated to the Qemu instance as well.
34 lines
1.4 KiB
XML
34 lines
1.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="MksDisplay" parent="GtkWidget">
|
|
<property name="focusable">false</property>
|
|
<child>
|
|
<object class="GtkPicture" id="picture">
|
|
<property name="content-fit">scale-down</property>
|
|
<property name="focusable">true</property>
|
|
<child>
|
|
<object class="GtkEventControllerMotion" id="motion">
|
|
<signal name="enter" handler="mks_display_motion_enter_cb" swapped="true"/>
|
|
<signal name="leave" handler="mks_display_motion_leave_cb" swapped="true"/>
|
|
<signal name="motion" handler="mks_display_motion_motion_cb" swapped="true"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkGestureClick" id="click">
|
|
<property name="button">0</property>
|
|
<property name="exclusive">true</property>
|
|
<signal name="pressed" handler="mks_display_click_pressed_cb" swapped="true"/>
|
|
<signal name="released" handler="mks_display_click_released_cb" swapped="true"/>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEventControllerKey" id="key">
|
|
<signal name="key-pressed" handler="mks_display_key_key_pressed_cb" swapped="true"/>
|
|
<signal name="key-released" handler="mks_display_key_key_released_cb" swapped="true"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|