Fix "show_window" function

Added the crucial "g_current_window = window" line to the "show_window"
function.