diff options
author | sabetts <sabetts> | 2003-08-24 21:35:20 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2003-08-24 21:35:20 +0000 |
commit | 039fc6b24d8d8e8198a739018f1497fd436d1e24 (patch) | |
tree | d68480bba141f726edf4ad2bd9ca0a4582ee64d2 | |
parent | 8ab630bd0991caa0b8820e95cde82aa745e58fdb (diff) | |
download | ratpoison-039fc6b24d8d8e8198a739018f1497fd436d1e24.zip |
(goto_window): don't do anything if the window is
already the current window.
(set_active_window): don't abort if last_win and win are the same.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/window.c | 9 |
2 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,9 @@ +2003-08-24 Shawn Betts <sabetts@sfu.ca> + + * src/window.c (goto_window): don't do anything if the window is + already the current window. + (set_active_window): don't abort if last_win and win are the same. + 2003-08-22 Shawn Betts <sabetts@sfu.ca> * src/window.c (set_active_window): don't do anything if the diff --git a/src/window.c b/src/window.c index d6add93..17098fe 100644 --- a/src/window.c +++ b/src/window.c @@ -471,11 +471,6 @@ set_active_window (rp_window *win) if (last_win) PRINT_DEBUG (("last window: %s\n", window_name (last_win))); PRINT_DEBUG (("new window: %s\n", window_name (win))); - /* If we're dealing with the same window, just abort. There is - nothing to do. */ - if (last_win == win) - return; - /* Make sure the window comes up full screen */ maximize (win); @@ -510,6 +505,10 @@ goto_window (rp_window *win) { rp_frame *frame; + /* There is nothing to do if it is already the current window. */ + if (current_window() == win) + return; + frame = find_windows_frame (win); if (frame) { |