Skip to content

Commit

Permalink
Update the mode line when switching frames with window managers
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenRecycleBin committed Jan 14, 2018
1 parent fda4fb9 commit ea96e2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion powerline.el
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,8 @@ static char * %s[] = {
(defun powerline-set-selected-window ()
"sets the variable `powerline-selected-window` appropriately"
(when (not (minibuffer-window-active-p (frame-selected-window)))
(setq powerline-selected-window (frame-selected-window))))
(setq powerline-selected-window (frame-selected-window))
(force-mode-line-update)))

(defun powerline-unset-selected-window ()
"Unsets the variable `powerline-selected-window` and updates the modeline"
Expand Down

0 comments on commit ea96e2b

Please sign in to comment.