Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minimize-on-close for TB 52 on Linux #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions chrome/content/messenger/messenger.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ addEventListener(
event.stopPropagation();
return false;
}
if (event.type == "close") {
return true;
}
// must be in sync with the original command
return goQuitApplication();
}
Expand Down Expand Up @@ -72,6 +75,7 @@ addEventListener(
}
['titlebar-close'].forEach(hijackButton.bind(null, MinTrayRTryCloseWindow));
['titlebar-min'].forEach(hijackButton.bind(null, MinTrayRTryMinimizeWindow));
window.addEventListener("close", MinTrayRTryCloseWindow);
})(this);

this.cloneToMenu('MinTrayR_sep-top', [menu_NewPopup_id, "button-getAllNewMsg", "addressBook"], false);
Expand Down
3 changes: 2 additions & 1 deletion install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
<em:id>mintrayr@tn123.ath.cx</em:id>
<em:version>1.3.2</em:version>
<em:version>1.3.2+tb52fix</em:version>
<em:unpack>true</em:unpack>
<em:multiprocessCompatible>true</em:multiprocessCompatible>
<em:targetPlatform>WINNT_x86-msvc</em:targetPlatform>
Expand All @@ -18,6 +18,7 @@
<em:contributor>Mook</em:contributor>
<em:contributor>helix400</em:contributor>
<em:contributor>Christoph Grimmer</em:contributor>
<em:contributor>rsjtdrjgfuzkfg</em:contributor>

<em:homepageURL>https://tn123.org/mintrayr/</em:homepageURL>
<em:optionsURL>chrome://mintrayr/content/prefs/prefs.xul</em:optionsURL>
Expand Down