Skip to content

Commit

Permalink
Merge pull request #2 from jmason888/issue-1-patch
Browse files Browse the repository at this point in the history
Fix premature popup dismissal on Ubuntu & ChromeOS
  • Loading branch information
deanoemcke authored Nov 29, 2017
2 parents 4f0df0e + bc582ca commit 5fef6e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ var spaces = (function () {
//add listeners for tab and window focus changes
//when a tab or window is changed, close the move tab popup if it is open
chrome.windows.onFocusChanged.addListener(function(windowId) {
// Prevent a click in the popup on Ubunto or ChroneOS from closing the
// popup prematurely.
if (windowId == chrome.windows.WINDOW_ID_NONE || windowId == spacesPopupWindowId) {
return;
}

if (!debug && spacesPopupWindowId) {
if (spacesPopupWindowId) {
closePopupWindow();
Expand Down

0 comments on commit 5fef6e5

Please sign in to comment.