set null input regions for surfaces upon calling set_cursor or start_drag
these surfaces have no input region according to spec
This commit is contained in:
parent
5cab9486f3
commit
b24b68df77
|
@ -654,6 +654,13 @@ _e_comp_wl_data_device_cb_drag_start(struct wl_client *client, struct wl_resourc
|
||||||
EC_CHANGED(ec);
|
EC_CHANGED(ec);
|
||||||
e_comp_wl->drag_client = ec;
|
e_comp_wl->drag_client = ec;
|
||||||
}
|
}
|
||||||
|
if (ec->comp_data->pending.input)
|
||||||
|
eina_tiler_clear(ec->comp_data->pending.input);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ec->comp_data->pending.input = eina_tiler_new(65535, 65535);
|
||||||
|
eina_tiler_tile_size_set(ec->comp_data->pending.input, 1, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EINA_LIST_FOREACH(e_comp_wl->ptr.resources, l, res)
|
EINA_LIST_FOREACH(e_comp_wl->ptr.resources, l, res)
|
||||||
|
|
|
@ -89,6 +89,13 @@ _e_comp_wl_input_pointer_cb_cursor_set(struct wl_client *client, struct wl_resou
|
||||||
* are being processed... let's BAIL.
|
* are being processed... let's BAIL.
|
||||||
*/
|
*/
|
||||||
if (!ec) return;
|
if (!ec) return;
|
||||||
|
if (ec->comp_data->pending.input)
|
||||||
|
eina_tiler_clear(ec->comp_data->pending.input);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ec->comp_data->pending.input = eina_tiler_new(65535, 65535);
|
||||||
|
eina_tiler_tile_size_set(ec->comp_data->pending.input, 1, 1);
|
||||||
|
}
|
||||||
if (!ec->re_manage)
|
if (!ec->re_manage)
|
||||||
{
|
{
|
||||||
ec->comp_data->cursor = ec->re_manage = 1;
|
ec->comp_data->cursor = ec->re_manage = 1;
|
||||||
|
|
Loading…
Reference in New Issue