If the framespace size has changed and by accident (or in fact, by
design) the evas size + framespace size is equal to the size sent
by the X server, ecore_evas_x was skipping the resize event. This
patch adds a tracking of the framespace size so that we redraw the
canvas if it changed.
This will fix issues with the main menu (since it's in the framespace,
23 pixels tall with the default theme & scale).
Note that all this is partly because the ecore evas size is the size
without the framespace, so weird calculations are made during resize...
Ref T5482
} expecting_resize;
struct {
+ int w, h;
+ } framespace;
+
+ struct {
Eina_Hash *cursors;
char *title;
char *name;
Ecore_Evas *ee;
Ecore_X_Event_Window_Configure *e;
Ecore_Evas_Engine_Data_X11 *edata;
+ Eina_Bool framespace_resized = EINA_FALSE;
int fw = 0, fh = 0, w, h;
e = event;
if (!ECORE_EVAS_PORTRAIT(ee))
SWAP_INT(fw, fh);
+ if ((fw != ee->framespace.w) || (fh != ee->framespace.h))
+ {
+ ee->framespace.w = fw;
+ ee->framespace.h = fh;
+ framespace_resized = EINA_TRUE;
+ }
+
if (((ee->w + fw) != e->w) || ((ee->h + fh) != e->h) ||
- ((ee->req.w + fw) != e->w) || ((ee->req.h + fh) != e->h))
+ ((ee->req.w + fw) != e->w) || ((ee->req.h + fh) != e->h) ||
+ framespace_resized)
{
w = e->w;
h = e->h;