From 052b05ad67e556ab1d636bb2f8b2f1c7c2356725 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Fri, 3 Mar 2006 09:10:14 +0000 Subject: [PATCH] and restore res on login - if requested. SVN revision: 20947 --- src/bin/e_manager.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/bin/e_manager.c b/src/bin/e_manager.c index 018d6fcbe..e290dec41 100644 --- a/src/bin/e_manager.c +++ b/src/bin/e_manager.c @@ -112,6 +112,23 @@ e_manager_new(Ecore_X_Window root, int num) { man->win = man->root; } + + /* FIXME: this handles 1 screen only - not multihead. multihead randr + * and xinerama are complex oin terms of interaction, so for now only + * really have this work in single head. the randr module kept this + * as a list, and i might move it to be the same too, but for now, keep + * it as is + */ + if (e_config->display_res_restore) + { + Ecore_X_Screen_Size size; + Ecore_X_Screen_Refresh_Rate rate; + + size.width = e_config->display_res_width; + size.height = e_config->display_res_height; + rate.rate = e_config->display_res_hz; + ecore_x_randr_screen_refresh_rate_set(man->root, size, rate); + } h = ecore_event_handler_add(ECORE_X_EVENT_WINDOW_SHOW_REQUEST, _e_manager_cb_window_show_request, man); if (h) man->handlers = evas_list_append(man->handlers, h);