summaryrefslogtreecommitdiff
path: root/src/split.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-02-24 07:44:20 +0000
committersabetts <sabetts>2003-02-24 07:44:20 +0000
commit74feea3aa793b13a3582fc25329701a45de01b64 (patch)
tree62791cbc8dfa5407ea5aa7e7492de4b515b89649 /src/split.c
parent49ca20c9fc7807d612ef9925c110e8da6c3c1a8f (diff)
downloadratpoison-74feea3aa793b13a3582fc25329701a45de01b64.zip
* src/split.h (cleanup_frame): new protoype
* src/manage.c (scanwins): added better debugging output * src/events.c (cleanup_frame): move to split.c (handle_key): ungrab the rat right after we read the key. * src/actions.h (cmd_tmpwm): new prototype. * src/actions.c (spawn): return the pid of the child process. prototype updated. (cmd_tmpwm): new function (user_commands): new command, tmp_wm.
Diffstat (limited to 'src/split.c')
-rw-r--r--src/split.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/split.c b/src/split.c
index 1d276c4..64d5584 100644
--- a/src/split.c
+++ b/src/split.c
@@ -52,6 +52,36 @@ num_frames (screen_info *s)
return count;
}
+void
+cleanup_frame (rp_window_frame *frame)
+{
+ rp_window *last_win;
+ rp_window *win;
+
+ win = find_window_other ();
+ if (win == NULL)
+ {
+ set_frames_window (frame, NULL);
+ return;
+ }
+
+ last_win = set_frames_window (frame, win);
+
+ maximize (win);
+ unhide_window (win);
+
+
+#ifdef MAXSIZE_WINDOWS_ARE_TRANSIENTS
+ if (!win->transient
+ && !(win->hints->flags & PMaxSize
+ && win->hints->max_width < win->scr->root_attr.width
+ && win->hints->max_height < win->scr->root_attr.height))
+#else
+ if (!win->transient)
+#endif
+ hide_others (win);
+}
+
rp_window *
set_frames_window (rp_window_frame *frame, rp_window *win)
{