Fix wm.getActiveWindow & wm.getActiveWorkspace