forked from enlightenment/efl
Ecore_Evas (wayland): Account for framespace width & height when
resizing the Ecore_Evas. SVN revision: 74566
This commit is contained in:
parent
72aad68b27
commit
ac66f47334
|
@ -446,6 +446,7 @@ static void
|
||||||
_ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
|
_ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
|
||||||
{
|
{
|
||||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||||
|
int fw = 0, fh = 0;
|
||||||
|
|
||||||
if (!ee) return;
|
if (!ee) return;
|
||||||
if (w < 1) w = 1;
|
if (w < 1) w = 1;
|
||||||
|
@ -459,6 +460,10 @@ _ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
|
||||||
ee->req.w = w;
|
ee->req.w = w;
|
||||||
ee->req.h = h;
|
ee->req.h = h;
|
||||||
|
|
||||||
|
evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
|
||||||
|
w += fw;
|
||||||
|
h += fh;
|
||||||
|
|
||||||
// ecore_wl_window_damage(ee->engine.wl.win, 0, 0, ee->w, ee->h);
|
// ecore_wl_window_damage(ee->engine.wl.win, 0, 0, ee->w, ee->h);
|
||||||
|
|
||||||
if ((ee->w != w) || (ee->h != h))
|
if ((ee->w != w) || (ee->h != h))
|
||||||
|
|
|
@ -455,6 +455,7 @@ static void
|
||||||
_ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
|
_ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
|
||||||
{
|
{
|
||||||
Evas_Engine_Info_Wayland_Shm *einfo;
|
Evas_Engine_Info_Wayland_Shm *einfo;
|
||||||
|
int fw = 0, fh = 0;
|
||||||
|
|
||||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||||
|
|
||||||
|
@ -470,6 +471,10 @@ _ecore_evas_wl_resize(Ecore_Evas *ee, int w, int h)
|
||||||
ee->req.w = w;
|
ee->req.w = w;
|
||||||
ee->req.h = h;
|
ee->req.h = h;
|
||||||
|
|
||||||
|
evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
|
||||||
|
w += fw;
|
||||||
|
h += fh;
|
||||||
|
|
||||||
if ((ee->w != w) || (ee->h != h))
|
if ((ee->w != w) || (ee->h != h))
|
||||||
{
|
{
|
||||||
ee->w = w;
|
ee->w = w;
|
||||||
|
|
Loading…
Reference in New Issue