summaryrefslogtreecommitdiff
path: root/openbox/stacking.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2007-06-01 23:39:52 +0000
committerMikael Magnusson <mikachu@comhem.se>2007-06-01 23:39:52 +0000
commit47529e777f5d0ac222b6ed06c9644c3909bd6479 (patch)
treeeff36065a2cfb9dec749fc1b3cfc1d6d1bc8668c /openbox/stacking.c
parent3547fe26edf0671dbc0ec5b3a081f8629d13e4b9 (diff)
revert 7246 and simplify action_raiselower a bit, turns out 7246 wasn't needed for that after all
Diffstat (limited to 'openbox/stacking.c')
-rw-r--r--openbox/stacking.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/openbox/stacking.c b/openbox/stacking.c
index 481c14bd..e323b569 100644
--- a/openbox/stacking.c
+++ b/openbox/stacking.c
@@ -545,8 +545,8 @@ static gboolean stacking_occludes(ObClient *client, ObClient *sibling)
return occludes;
}
-gboolean stacking_restack_request(ObClient *client, ObClient *sibling,
- gint detail, gboolean activate)
+void stacking_restack_request(ObClient *client, ObClient *sibling,
+ gint detail, gboolean activate)
{
switch (detail) {
case Below:
@@ -563,8 +563,6 @@ gboolean stacking_restack_request(ObClient *client, ObClient *sibling,
lower it to the bottom */
if (stacking_occludes(client, sibling))
stacking_lower(CLIENT_AS_WINDOW(client));
- else
- return FALSE;
break;
case Above:
ob_debug("Restack request Above for client %s sibling %s\n",
@@ -586,8 +584,7 @@ gboolean stacking_restack_request(ObClient *client, ObClient *sibling,
client_activate(client, FALSE, TRUE);
else
stacking_raise(CLIENT_AS_WINDOW(client));
- } else
- return FALSE;
+ }
break;
case Opposite:
ob_debug("Restack request Opposite for client %s sibling "
@@ -605,5 +602,4 @@ gboolean stacking_restack_request(ObClient *client, ObClient *sibling,
stacking_lower(CLIENT_AS_WINDOW(client));
break;
}
- return TRUE;
}