dont use a global var

This commit is contained in:
Dana Jansens 2003-01-10 09:47:43 +00:00
parent 05039de135
commit 1baea880f4

View file

@ -269,12 +269,12 @@ def setup_scroll():
mbind("C-A-4", MC_Frame, MouseClick, send_to_next_desktop) mbind("C-A-4", MC_Frame, MouseClick, send_to_next_desktop)
mbind("C-A-5", MC_Frame, MouseClick, send_to_prev_desktop) mbind("C-A-5", MC_Frame, MouseClick, send_to_prev_desktop)
focus_stack = []
def setup_fallback_focus(): def setup_fallback_focus():
"""Sets up a focus fallback routine so that when no windows are focused, """Sets up a focus fallback routine so that when no windows are focused,
the last window on the desktop that had focus will be focused.""" the last window on the desktop that had focus will be focused."""
focus_stack = []
def focused(data): def focused(data):
global focus_stack #global focus_stack
if data.client: if data.client:
window = data.client.window() window = data.client.window()
# add to front the stack # add to front the stack