enforce compositor canvas resizing/updating when emitting randr events

all compositors will want this to occur, so make it automatic
This commit is contained in:
Mike Blumenkrantz 2015-08-12 19:27:53 -04:00
parent a08a1434c1
commit 7986b084f8
1 changed files with 7 additions and 0 deletions

View File

@ -597,6 +597,13 @@ _cb_screen_change_delay(void *data EINA_UNUSED)
}
// update screen info after the above apply or due to external changes
e_randr2_screeninfo_update();
if ((e_comp->w != e_randr2->w) || (e_comp->h != e_randr2->h))
e_comp_canvas_resize(e_randr2->w, e_randr2->h);
else
{
e_randr2_screens_setup(e_comp->w, e_comp->h);
e_comp_canvas_update();
}
// tell the rest of e some screen reconfigure thing happened
ecore_event_add(E_EVENT_RANDR_CHANGE, NULL, NULL, NULL);
event_screen = EINA_FALSE;