1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-10 06:14:11 +01:00

Don't use a popuppanel for the bell on Gecko<2 either.

This commit is contained in:
Kris Maglione
2010-11-09 17:01:57 -05:00
parent 75b5522073
commit 37057099f7
4 changed files with 7 additions and 15 deletions

View File

@@ -263,7 +263,7 @@ const ConfigBase = Class(ModuleBase, {
right: 0 !important;
}
!Bell border: none; background-color: black;
!Bell background-color: black !important;
Hint;;* {
/* This gets released into the wild, so everything is important */
font: bold 10px monospace !important;

View File

@@ -146,16 +146,8 @@ const Dactyl = Module("dactyl", {
util.timeout(function () { popup.parentNode.selectedPanel = restore; }, 20);
}
else {
popup = document.getElementById("dactyl-popup-bell");
let win = config.visualbellWindow;
let rect = win.getBoundingClientRect();
let width = rect.right - rect.left;
let height = rect.bottom - rect.top;
// NOTE: this doesn't seem to work in FF3 with full box dimensions
popup.openPopup(win, "overlap", 1, 1, false, false);
popup.sizeTo(width - 2, height - 2);
util.timeout(function () { popup.hidePopup(); }, 20);
highlight.highlightNode(document.documentElement, "Bell");
util.timeout(function () { document.documentElement.removeAttributeNS(NS, "highlight"); }, 20);
}
}
else {

View File

@@ -28,9 +28,6 @@
<window id="&dactyl.mainWindow;">
<popupset>
<panel id="dactyl-popup-bell" dactyl:highlight="Bell"
noautohide="true" noautofocus="true"/>
<menupopup id="dactyl-contextmenu"
onpopupshowing="return (event.target != this || dactyl.modules.commandline.onContext(event));">
<menuitem id="dactyl-context-copylink"

View File

@@ -70,7 +70,10 @@
url-prefix(chrome://) {
[dactyl|highlight~=Bell] {
-moz-appearance: none;
-moz-appearance: none !important;
}
window[dactyl|highlight~=Bell] > * {
visibility: hidden !important;
}
[dactyl|highlight~=CmdLine] {