yanghaoxie / which-key-posframe

Let emacs-which-key use posframe to show its popup.
GNU General Public License v3.0
51 stars 10 forks source link

`which-key-posframe--hide' performance optimization #11

Closed eeshugerman closed 2 years ago

eeshugerman commented 3 years ago

Track popup visibility and only call posframe--hide when popup is known to be visible.

Fixes https://github.com/yanghaoxie/which-key-posframe/issues/7

eeshugerman commented 3 years ago

(By the way I'd be happy to remove the second commit if you'd prefer this not include unrelated whitespace stuff.)