aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHannes Janetzek <hannes.janetzek@gmail.com>2012-11-04 22:57:04 +0000
committerHannes Janetzek <hannes.janetzek@gmail.com>2012-11-04 22:57:04 +0000
commit401ad33fe5f17f48bdb9fe75ec78eaaa650fb00e (patch)
treeb38c13382b2bf40c21f3d41caed9d6902a49d10c /src
parente17/evry: add monitors for PATH, avoid scanning each time. (diff)
downloadenlightenment-401ad33fe5f17f48bdb9fe75ec78eaaa650fb00e.tar.gz
e17/evry: avoid some spankies
- keep pointer to idler, callback might be renewed SVN revision: 78906
Diffstat (limited to 'src')
-rw-r--r--src/modules/everything/evry_view.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/modules/everything/evry_view.c b/src/modules/everything/evry_view.c
index b576e01f6..733cd4ead 100644
--- a/src/modules/everything/evry_view.c
+++ b/src/modules/everything/evry_view.c
@@ -495,14 +495,18 @@ _e_smart_reconfigure_do(void *data)
if (!sd)
return ECORE_CALLBACK_CANCEL;
- sd->idle_enter = NULL;
-
if (sd->w < 1)
- return ECORE_CALLBACK_CANCEL;
-
+ {
+ sd->idle_enter = NULL;
+ return ECORE_CALLBACK_CANCEL;
+ }
+
if (sd->view->hiding)
- return ECORE_CALLBACK_CANCEL;
-
+ {
+ sd->idle_enter = NULL;
+ return ECORE_CALLBACK_CANCEL;
+ }
+
if (sd->cx > (sd->cw - sd->w)) sd->cx = sd->cw - sd->w;
if (sd->cy > (sd->ch - sd->h)) sd->cy = sd->ch - sd->h;
if (sd->cx < 0) sd->cx = 0;