Skip to content

Commit

Permalink
Fix minimize on close for Mail/News applications on Linux
Browse files Browse the repository at this point in the history
This incorporates rsjtdrjgfuzkfg's fixes in nmaier/mintrayr#179
  • Loading branch information
fofajardo committed Oct 6, 2022
1 parent 7906093 commit 890b9db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/chrome/content/messenger/messenger.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ addEventListener(
event.stopPropagation();
return false;
}
if (event.type == "close") {
return true;
}
// must be in sync with the original command
return window.minimize();
}
Expand All @@ -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
1 change: 1 addition & 0 deletions src/install.rdf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,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://franklindm.github.io/</em:homepageURL>
<em:optionsURL>chrome://mintrayr/content/prefs/prefs.xul</em:optionsURL>
Expand Down

0 comments on commit 890b9db

Please sign in to comment.