summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-08-24 21:35:20 +0000
committersabetts <sabetts>2003-08-24 21:35:20 +0000
commit039fc6b24d8d8e8198a739018f1497fd436d1e24 (patch)
treed68480bba141f726edf4ad2bd9ca0a4582ee64d2 /src/window.c
parent8ab630bd0991caa0b8820e95cde82aa745e58fdb (diff)
downloadratpoison-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.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c9
1 files changed, 4 insertions, 5 deletions
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)
{