From 07062860cb8e003e285d2ffbf0b8a136abd3c286 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 25 Feb 2010 05:45:14 +0000 Subject: [PATCH] Handle policy activate layer a bit better (don't set so high). Add an easily adjusted variable in policy.h for POL_ACTIVATE_LAYER. SVN revision: 46454 --- src/modules/illume2/policies/illume/policy.c | 2 +- src/modules/illume2/policies/illume/policy.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/illume2/policies/illume/policy.c b/src/modules/illume2/policies/illume/policy.c index bd63c6179..66b63890e 100644 --- a/src/modules/illume2/policies/illume/policy.c +++ b/src/modules/illume2/policies/illume/policy.c @@ -1068,7 +1068,7 @@ _policy_border_activate(E_Border *bd) /* set very high layer for this window as it needs attention and thus * should show above everything */ - e_border_layer_set(bd, 250); + e_border_layer_set(bd, POL_ACTIVATE_LAYER); /* if we can raise the border do it */ if (!bd->lock_user_stacking) e_border_raise(bd); diff --git a/src/modules/illume2/policies/illume/policy.h b/src/modules/illume2/policies/illume/policy.h index fbf228242..30dbbe45d 100644 --- a/src/modules/illume2/policies/illume/policy.h +++ b/src/modules/illume2/policies/illume/policy.h @@ -5,6 +5,7 @@ # define POL_INDICATOR_LAYER 200 # define POL_QUICKPANEL_LAYER 160 # define POL_KEYBOARD_LAYER 150 +# define POL_ACTIVATE_LAYER 145 # define POL_FULLSCREEN_LAYER 140 # define POL_DIALOG_LAYER 120 # define POL_SPLASH_LAYER 120