forked from enlightenment/efl
Ecore_Evas (wayland_shm): Add support for ecore_evas_move_resize
engine function. SVN revision: 71452
This commit is contained in:
parent
44d90c2c58
commit
be66a4e03b
|
@ -54,6 +54,7 @@ static void _ecore_evas_wl_callback_mouse_in_set(Ecore_Evas *ee, void (*func)(Ec
|
|||
static void _ecore_evas_wl_callback_mouse_out_set(Ecore_Evas *ee, void (*func)(Ecore_Evas *ee));
|
||||
static void _ecore_evas_wl_move(Ecore_Evas *ee, int x, int y);
|
||||
static void _ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h);
|
||||
static void _ecore_evas_wl_move_resize(Ecore_Evas *ee, int x, int y, int w, int h);
|
||||
static void _ecore_evas_wl_show(Ecore_Evas *ee);
|
||||
static void _ecore_evas_wl_hide(Ecore_Evas *ee);
|
||||
static void _ecore_evas_wl_raise(Ecore_Evas *ee);
|
||||
|
@ -119,7 +120,7 @@ static Ecore_Evas_Engine_Func _ecore_wl_engine_func =
|
|||
_ecore_evas_wl_move,
|
||||
NULL, // managed_move
|
||||
_ecore_evas_wl_resize,
|
||||
NULL, // move_resize
|
||||
_ecore_evas_wl_move_resize,
|
||||
NULL, // rotation_set
|
||||
NULL, // shaped_set
|
||||
_ecore_evas_wl_show,
|
||||
|
@ -147,12 +148,12 @@ static Ecore_Evas_Engine_Func _ecore_wl_engine_func =
|
|||
_ecore_evas_wl_ignore_events_set,
|
||||
_ecore_evas_wl_alpha_set,
|
||||
_ecore_evas_wl_transparent_set,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL, // window group set
|
||||
NULL, // aspect set
|
||||
NULL, // urgent set
|
||||
NULL, // modal set
|
||||
NULL, // demand attention set
|
||||
NULL, // focus skip set
|
||||
_ecore_evas_wl_render,
|
||||
_ecore_evas_wl_screen_geometry_get
|
||||
};
|
||||
|
@ -524,6 +525,18 @@ _ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
_ecore_evas_wl_move_resize(Ecore_Evas *ee, int x, int y, int w, int h)
|
||||
{
|
||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||
|
||||
if (!ee) return;
|
||||
if ((ee->x != x) || (ee->y != y))
|
||||
_ecore_evas_wl_move(ee, x, y);
|
||||
if ((ee->w != w) || (ee->h != h))
|
||||
_ecore_evas_wl_resize(ee, w, h);
|
||||
}
|
||||
|
||||
static void
|
||||
_ecore_evas_wl_ensure_pool_size(Ecore_Evas *ee, int w, int h)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue