summaryrefslogtreecommitdiff
path: root/src/bin/e_desklock.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2012-10-02 08:54:35 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2012-10-02 08:54:35 +0000
commit436323bf5927715e30d5d7fb83a0a46b0f99cdc0 (patch)
treec45ec8797c81ff61b83090e8ccfb1cd2072c550a /src/bin/e_desklock.c
parentd445520629500870a560c3fc8bb8007acefb4603 (diff)
downloadenlightenment-436323bf5927715e30d5d7fb83a0a46b0f99cdc0.tar.gz
e: cleanup layer handling
It seems people put random numbers as layers, so it is better to define available layer numbers. This patch also puts popups below fullscreen windows, as it sucks to get popups during presentations. A better solution is maybe to put popups above fullscreen, but have a presentation mode to put fullscreen windows above popups? SVN revision: 77293
Diffstat (limited to 'src/bin/e_desklock.c')
-rw-r--r--src/bin/e_desklock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/e_desklock.c b/src/bin/e_desklock.c
index b1d7a90c05..aeadc1d7f8 100644
--- a/src/bin/e_desklock.c
+++ b/src/bin/e_desklock.c
@@ -8,7 +8,6 @@
#define E_DESKLOCK_STATE_CHECKING 1
#define E_DESKLOCK_STATE_INVALID 2
-#define ELOCK_POPUP_LAYER 10000
#define PASSWD_LEN 256
/**************************** private data ******************************/
@@ -36,7 +35,7 @@ struct _E_Desklock_Data
Ecore_X_Window elock_grab_break_wnd;
char passwd[PASSWD_LEN];
int state;
- Eina_Bool selected : 1;
+ Eina_Bool selected : 1;
};
struct _E_Desklock_Run
@@ -441,7 +440,7 @@ _e_desklock_popup_add(E_Zone *zone)
evas_event_feed_mouse_move(edp->popup_wnd->evas, -1000000, -1000000,
ecore_x_current_time_get(), NULL);
- e_popup_layer_set(edp->popup_wnd, ELOCK_POPUP_LAYER);
+ e_popup_layer_set(edp->popup_wnd, E_LAYER_PRIO);
ecore_evas_raise(edp->popup_wnd->ecore_evas);
evas_event_freeze(edp->popup_wnd->evas);