forked from enlightenment/enlightenment
send different values to wl clients for configure when performing a resize action
the calculated values here seem to not be sufficiently accurate to manage a calculated resize. instead, calc relative pointer coords and send them #barrel
This commit is contained in:
parent
327e422aab
commit
57c36f92a2
|
@ -501,10 +501,16 @@ _e_comp_wl_evas_cb_resize(void *data, Evas_Object *obj EINA_UNUSED, void *event
|
|||
if (e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_WL) return;
|
||||
|
||||
if ((ec->shading) || (ec->shaded)) return;
|
||||
if (ec->comp_data->shell.configure_send)
|
||||
if (!ec->comp_data->shell.configure_send) return;
|
||||
if (e_client_util_resizing_get(ec))
|
||||
ec->comp_data->shell.configure_send(ec->comp_data->shell.surface,
|
||||
ec->comp->wl_comp_data->resize.edges,
|
||||
ec->w, ec->h);
|
||||
ec->mouse.current.mx - ec->client.x,
|
||||
ec->mouse.current.my - ec->client.y);
|
||||
else
|
||||
ec->comp_data->shell.configure_send(ec->comp_data->shell.surface,
|
||||
ec->comp->wl_comp_data->resize.edges,
|
||||
ec->client.w, ec->client.h);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue