summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-08-23 05:16:17 +0000
committersabetts <sabetts>2001-08-23 05:16:17 +0000
commitb4bbd9206ca9a5f9b0fec30bb70b04d29e84a8c8 (patch)
tree92af06e97321df0521cc579686bb01c3ce25595c /src/events.c
parentd86a6d1adada6ce07151306973d29b0c62235701 (diff)
downloadratpoison-b4bbd9206ca9a5f9b0fec30bb70b04d29e84a8c8.zip
new code to handle transient windows
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c38
1 files changed, 21 insertions, 17 deletions
diff --git a/src/events.c b/src/events.c
index d3b4004..3ae1fd8 100644
--- a/src/events.c
+++ b/src/events.c
@@ -67,32 +67,36 @@ cleanup_frame (rp_window_frame *frame)
if (win)
{
rp_window *last_win;
- last_win = frame->win;
- frame->win = win;
+ last_win = set_frames_window (frame, win);
maximize (win);
- unhide_transient_for (win);
+// unhide_transient_for (win);
unhide_window (win);
- if (is_transient_ancestor (last_win, win))
+ if (!win->transient)
{
- hide_transient_for_between (last_win, win);
- }
- else if (last_win->transient && win->transient &&
- last_win->transient_for == win->transient_for)
- {
- /* Both last_win and win have the same transient_for so we
- don't need to hide anything more */
- }
- else
- {
- hide_transient_for (last_win);
+ hide_others(win);
}
+
+// if (is_transient_ancestor (last_win, win))
+// {
+// hide_transient_for_between (last_win, win);
+// }
+// else if (last_win->transient && win->transient &&
+// last_win->transient_for == win->transient_for)
+// {
+// /* Both last_win and win have the same transient_for so we
+// don't need to hide anything more */
+// }
+// else
+// {
+// hide_transient_for (last_win);
+// }
}
else
{
- hide_transient_for (frame->win);
- frame->win = NULL;
+// hide_transient_for (frame->win);
+ set_frames_window (frame, NULL);
}
}