Good to know I'm not the only one who spams the world with
miss-committed printfs...
svn needs add --interactive ;-)
> Author: raster
> Date: 2010-07-13 16:56:47 -0700 (Tue, 13 Jul 2010)
> New Revision: 50240
>
> Modified:
> trunk/e/src/bin/e_dpms.c
>
> Modified: trunk/e/src/bin/e_dpms.c
> ===================================================================
> --- trunk/e/src/bin/e_dpms.c 2010-07-13 23:36:32 UTC (rev
> 50239) +++ trunk/e/src/bin/e_dpms.c 2010-07-13 23:56:47 UTC
> (rev 50240) @@ -6,6 +6,7 @@
> static Ecore_Event_Handler *_e_dpms_handler_config_mode = NULL;
> static Ecore_Event_Handler *_e_dpms_handler_border_fullscreen = NULL;
> static Ecore_Event_Handler *_e_dpms_handler_border_unfullscreen =
> NULL; +static Ecore_Event_Handler *_e_dpms_handler_border_remove =
> NULL; static int _e_dpms_fullscreen_count = 0;
>
> static Eina_Bool
> @@ -19,6 +20,7 @@
> _e_dpms_handler_border_fullscreen_cb(void *data __UNUSED__, int type
> __UNUSED__, void *event __UNUSED__) {
> _e_dpms_fullscreen_count++;
> +printf("incremented fs_count: %d\n", _e_dpms_fullscreen_count);
> if (_e_dpms_fullscreen_count == 1) e_dpms_init();
> return ECORE_CALLBACK_PASS_ON;
> }
> @@ -27,17 +29,33 @@
> _e_dpms_handler_border_unfullscreen_cb(void *data __UNUSED__, int
> type __UNUSED__, void *event __UNUSED__) {
> _e_dpms_fullscreen_count--;
> +printf("decremented fs_count: %d\n", _e_dpms_fullscreen_count);
> if (_e_dpms_fullscreen_count == 0) e_dpms_init();
> else if (_e_dpms_fullscreen_count < 0) _e_dpms_fullscreen_count =
> 0; return ECORE_CALLBACK_PASS_ON;
> }
>
> +static Eina_Bool
> +_e_dpms_handler_border_remove_cb(void *data __UNUSED__, int type
> __UNUSED__, void *event) +{
> + E_Event_Border_Remove *ev = event;
> +
> + if (ev->border->fullscreen) {
> + _e_dpms_fullscreen_count--;
> +printf("decremented fs_count from remove: %d\n",
> _e_dpms_fullscreen_count);
> + if (_e_dpms_fullscreen_count == 0) e_dpms_init();
> + else if (_e_dpms_fullscreen_count < 0)
> _e_dpms_fullscreen_count = 0;
> + }
> + return ECORE_CALLBACK_PASS_ON;
> +}
> +
> EAPI int
> e_dpms_init(void)
> {
> int standby=0, suspend=0, off=0;
> int enabled = ((e_config->dpms_enable) &&
> (!e_config->mode.presentation) && (_e_dpms_fullscreen_count <= 0));
> +printf("checking fs_count and if enabled: %d, %d\n",
> _e_dpms_fullscreen_count, enabled);
> if (!_e_dpms_handler_config_mode)
> _e_dpms_handler_config_mode = ecore_event_handler_add
> @@ -51,6 +69,10 @@
> _e_dpms_handler_border_unfullscreen = ecore_event_handler_add
> (E_EVENT_BORDER_UNFULLSCREEN,
> _e_dpms_handler_border_unfullscreen_cb, NULL);
> + if (!_e_dpms_handler_border_remove)
> + _e_dpms_handler_border_remove = ecore_event_handler_add
> + (E_EVENT_BORDER_REMOVE, _e_dpms_handler_border_remove_cb,
> NULL); +
> ecore_x_dpms_enabled_set(enabled);
> if (!enabled)
> return 1;
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel