diff options
author | sabetts <sabetts> | 2003-08-23 06:56:58 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2003-08-23 06:56:58 +0000 |
commit | 23f0837b28ec7471d1343d7800477505e036fccb (patch) | |
tree | d3ae9abfebed55ccebefd6696eaf38249da9018b /src | |
parent | 59ad37223522bb0168b10a85cc891ecb59c30f4c (diff) | |
download | ratpoison-23f0837b28ec7471d1343d7800477505e036fccb.zip |
(set_active_window): don't do anything if the
window is already the focused window.
Diffstat (limited to 'src')
-rw-r--r-- | src/window.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index 10a359f..d6add93 100644 --- a/src/window.c +++ b/src/window.c @@ -471,6 +471,11 @@ 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); |