From 2eeb5fe129fbeaa0f5e01d745cf9bddc2414f2aa Mon Sep 17 00:00:00 2001 From: discomfitor Date: Thu, 17 Oct 2013 08:35:14 +0100 Subject: [PATCH] get root window BEFORE using it to restore randr config :/ --- src/bin/e_randr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/e_randr.c b/src/bin/e_randr.c index 725046e15..5cec7de6c 100644 --- a/src/bin/e_randr.c +++ b/src/bin/e_randr.c @@ -381,6 +381,9 @@ _e_randr_config_restore(void) * any randr event updates until we are done */ ecore_x_grab(); + /* get the root window */ + root = ecore_x_window_root_first_get(); + /* get existing primary output */ /* 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); 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 */ if ((crtcs = ecore_x_randr_crtcs_get(root, &ncrtcs))) {