1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 15:35:45 +01:00

Filter :au Fullscreen on fullscreen state rather than buffer URL. Remove bloody moz-collapsed attribute at the same time.

This commit is contained in:
Kris Maglione
2011-01-18 23:33:30 -05:00
parent b7e31f1bcc
commit 84f93ad96c
2 changed files with 3 additions and 2 deletions

View File

@@ -1076,9 +1076,10 @@ var Events = Module("events", {
onResize: function onResize(event) {
if (window.fullScreen != this._fullscreen) {
statusline.statusBar.removeAttribute("moz-collapsed");
this._fullscreen = window.fullScreen;
dactyl.triggerObserver("fullscreen", this._fullscreen);
autocommands.trigger("Fullscreen", { state: this._fullscreen });
autocommands.trigger("Fullscreen", { url: this._fullscreen ? "on" : "off", state: this._fullscreen });
}
},