summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-06-06 18:55:28 +0000
committersabetts <sabetts>2001-06-06 18:55:28 +0000
commit01a5139b845f89dd87ed971f2fd4d7c65055629e (patch)
tree1efc1575af6c3e4321b76461e3809225c6e42fc6
parent86930d52e1a5514afabbf1cb38fe53e32897df9e (diff)
downloadratpoison-01a5139b845f89dd87ed971f2fd4d7c65055629e.zip
(unhide_transient_for): abort if the transient_for
window can't be found. (hide_transient_for): likewise
-rw-r--r--ChangeLog11
-rw-r--r--src/list.c12
2 files changed, 23 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 44752cf..c7aaef4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2001-06-06 Shawn Betts <sabetts@van.gobasis.com>
+
+ * src/list.c (unhide_transient_for): abort if the transient_for
+ window can't be found.
+ (hide_transient_for): likewise
+
+2001-06-01 Shawn Betts <sabetts@van.gobasis.com>
+
+ * src/events.c (map_request): If the window is iconified call
+ set_active_window on it.
+
2001-06-05 shawn <sabetts@diggin.lamenet.tmp>
* src/list.c (set_active_window): calls give_window_focus which
diff --git a/src/list.c b/src/list.c
index 99542d9..d4a7ab5 100644
--- a/src/list.c
+++ b/src/list.c
@@ -411,6 +411,12 @@ unhide_transient_for (rp_window *win)
frame = find_windows_frame (win);
transient_for = find_window (win->transient_for);
+ if (transient_for == NULL)
+ {
+ PRINT_DEBUG ("Can't find transient_for for '%s'", win->name );
+ return;
+ }
+
if (find_windows_frame (transient_for) == NULL)
{
frame->win = transient_for;
@@ -442,6 +448,12 @@ hide_transient_for (rp_window *win)
if (!win->transient) return;
transient_for = find_window (win->transient_for);
+ if (transient_for == NULL)
+ {
+ PRINT_DEBUG ("Can't find transient_for for '%s'", win->name );
+ return;
+ }
+
if (find_windows_frame (transient_for) == NULL)
{
PRINT_DEBUG ("hide transient window: %s\n", transient_for->name);