smt/window-active-p now works with emacs trunk