deanoemcke / spaces

MIT License
66 stars 32 forks source link

Fix premature popup dismissal on Ubuntu & ChromeOS #2

Closed jmason888 closed 6 years ago

jmason888 commented 6 years ago

Purpose

Fix for Issue #1: "Popups don't stay open on Ubuntu+Compiz"

Credit

Patch due to @tri-bao, who posted it to the Chrome Web Store support pages before the extension was added to GitHub.

Analysis

On some platforms, clicking in the Quick-Switch/Move-Active-Tab popup window triggers an onFocusChanged event, which causes us to dismiss the popup as though the user had clicked in a real window. This patch addresses this corner case.