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:
@@ -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 });
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user