forked from enlightenment/enlightenment
get root window BEFORE using it to restore randr config :/
This commit is contained in:
parent
a1cb1e4671
commit
2eeb5fe129
|
@ -381,6 +381,9 @@ _e_randr_config_restore(void)
|
||||||
* any randr event updates until we are done */
|
* any randr event updates until we are done */
|
||||||
ecore_x_grab();
|
ecore_x_grab();
|
||||||
|
|
||||||
|
/* get the root window */
|
||||||
|
root = ecore_x_window_root_first_get();
|
||||||
|
|
||||||
/* get existing primary output */
|
/* get existing primary output */
|
||||||
/* primary = ecore_x_randr_primary_output_get(root); */
|
/* primary = ecore_x_randr_primary_output_get(root); */
|
||||||
|
|
||||||
|
@ -391,9 +394,6 @@ _e_randr_config_restore(void)
|
||||||
_e_randr_config_screen_size_calculate(&sw, &sh);
|
_e_randr_config_screen_size_calculate(&sw, &sh);
|
||||||
printf("\tCalculated Screen Size: %d %d\n", sw, sh);
|
printf("\tCalculated Screen Size: %d %d\n", sw, sh);
|
||||||
|
|
||||||
/* get the root window */
|
|
||||||
root = ecore_x_window_root_first_get();
|
|
||||||
|
|
||||||
/* get a list of crtcs from X */
|
/* get a list of crtcs from X */
|
||||||
if ((crtcs = ecore_x_randr_crtcs_get(root, &ncrtcs)))
|
if ((crtcs = ecore_x_randr_crtcs_get(root, &ncrtcs)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue