summaryrefslogtreecommitdiff
path: root/src/manage.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/manage.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/manage.c')
-rw-r--r--src/manage.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/manage.c b/src/manage.c
index 9c62a66..451c809 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -320,11 +320,16 @@ scanwins(screen_info *s)
win = add_to_window_list (s, wins[i]);
- PRINT_DEBUG (("map_state: %d\n", attr.map_state));
+ PRINT_DEBUG (("map_state: %s\n",
+ attr.map_state == IsViewable ? "IsViewable":
+ attr.map_state == IsUnviewable ? "IsUnviewable" : "IsUnmapped"));
+ PRINT_DEBUG (("state: %s\n",
+ get_state(win) == IconicState ? "Iconic":
+ get_state(win) == NormalState ? "Normal" : "Other"));
/* Collect mapped and iconized windows. */
if (attr.map_state == IsViewable
- || (attr.map_state == IsUnmapped
+ || (attr.map_state == IsUnmapped
&& get_state (win) == IconicState))
map_window (win);
}