aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2013-02-19 11:01:05 +0000
committerChristopher Michael <cpmichael1@comcast.net>2013-02-19 11:01:05 +0000
commit3ff49b211e6f1350fbc2f405f48e403f7d927250 (patch)
treec64017200c171a11b530f9738afabc1961772c39 /src
parent985ff5af28598c1ba4ae220c93224f4d90259a12 (diff)
downloadenlightenment-3ff49b211e6f1350fbc2f405f48e403f7d927250.tar.gz
enlightenment-3ff49b211e6f1350fbc2f405f48e403f7d927250.tar.xz
enlightenment-3ff49b211e6f1350fbc2f405f48e403f7d927250.zip
Add poll_interval to e_randr_cfg.
Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84225
Diffstat (limited to 'src')
-rw-r--r--src/bin/e_randr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/e_randr.c b/src/bin/e_randr.c
index cc0f72971..f3d47fb23 100644
--- a/src/bin/e_randr.c
+++ b/src/bin/e_randr.c
@@ -151,6 +151,7 @@ _e_randr_config_load(void)
E_CONFIG_VAL(D, T, screen.height, INT);
E_CONFIG_LIST(D, T, crtcs, _e_randr_crtc_edd);
E_CONFIG_VAL(D, T, restore, UCHAR);
+ E_CONFIG_VAL(D, T, poll_interval, INT);
/* try to load the randr config */
if ((e_randr_cfg = e_config_domain_load("e_randr", _e_randr_edd)))
@@ -226,6 +227,9 @@ _e_randr_config_new(void)
/* by default, restore config */
e_randr_cfg->restore = EINA_TRUE;
+ /* by default, use 4 sec poll interval */
+ e_randr_cfg->poll_interval = 32;
+
/* grab the root window once */
root = ecore_x_window_root_first_get();
@@ -335,7 +339,7 @@ _e_randr_config_new(void)
}
/* set limits */
- /* E_CONFIG_LIMIT(); */
+ E_CONFIG_LIMIT(e_randr_cfg->poll_interval, 1, 1024);
/* save the new config */
e_randr_config_save();