Permalink
Browse files

Record main window before popup to sub

  • Loading branch information...
1 parent 6da97d1 commit 65ea77703a864b8911f6c89364aee368a0f87d29 @tkf committed Jan 27, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 ne2wm-popwin.el
View
3 ne2wm-popwin.el
@@ -59,6 +59,9 @@ See `popwin:special-display-config'."
(selectp
(and (= 0 (minibuffer-depth))
(not (ne2wm:popwin-noselect-buffer-p buffer)))))
+ (unless (eq (wlf:get-window-name (e2wm:pst-get-wm) (selected-window))
+ 'sub)
+ (ne2wm:record-main-window))
(e2wm:with-advice
(e2wm:pst-buffer-set 'sub buffer t selectp))))

0 comments on commit 65ea777

Please sign in to comment.