princeamd pushed a commit to branch enlightenment-0.17.

commit 128d82a0d88d6955d12f295927f40065c4a148cd
Author: Christopher Michael <[email protected]>
Date:   Tue Feb 19 11:01:05 2013 +0000

    Backport: 3ff49b2 :: Add poll_interval to e_randr_cfg.
    
    Signed-off-by: Christopher Michael <[email protected]>
    
    SVN revision: 84225
    Signed-off-by: Deon Thomas <[email protected]>
---
 src/bin/e_randr.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_randr.c b/src/bin/e_randr.c
index cc0f729..f3d47fb 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();

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to