summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-02-14 14:27:46 -0500
committerDana Jansens <danakj@orodu.net>2008-02-14 14:30:10 -0500
commit911413d86c771248994727cfd53a7aa2e122993c (patch)
treee014ebcc93c8838a2ea4dc48d370ae6cc691dd59 /openbox
parentcd3aa44b6a78e84e75420d6cca2c32f117a096a4 (diff)
obprompts do not have a stacking layer, as they don't appear directly in the stacking list
Diffstat (limited to 'openbox')
-rw-r--r--openbox/window.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/window.c b/openbox/window.c
index 84afc4d8..d312fc36 100644
--- a/openbox/window.c
+++ b/openbox/window.c
@@ -80,8 +80,11 @@ ObStackingLayer window_layer(ObWindow *self)
case Window_Client:
return ((ObClient*)self)->layer;
case Window_Internal:
- case Window_Prompt:
return OB_STACKING_LAYER_INTERNAL;
+ case Window_Prompt:
+ /* not used directly for stacking, prompts are managed as clients */
+ g_assert_not_reached();
+ break;
}
g_assert_not_reached();
return None;