Skip to content

Commit bc582ca

Browse files
authored
Fix premature popup dismissal on Ubuntu & ChromeOS
Fix for [Issue #1](#1). Patch due to [Bao Ho](https://plus.google.com/102553037065128878831), who posted it to the [support pages] (post titled "_Solution for the problem of space switch in linux_").
1 parent 4f0df0e commit bc582ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

js/background.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ var spaces = (function () {
7474
//add listeners for tab and window focus changes
7575
//when a tab or window is changed, close the move tab popup if it is open
7676
chrome.windows.onFocusChanged.addListener(function(windowId) {
77+
// Prevent a click in the popup on Ubunto or ChroneOS from closing the
78+
// popup prematurely.
79+
if (windowId == chrome.windows.WINDOW_ID_NONE || windowId == spacesPopupWindowId) {
80+
return;
81+
}
82+
7783
if (!debug && spacesPopupWindowId) {
7884
if (spacesPopupWindowId) {
7985
closePopupWindow();

0 commit comments

Comments
 (0)