-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Commit message says it all.
Uli
- --
"Do you know that books smell like nutmeg or some spice from a foreign land?"
-- Faber in Fahrenheit 451
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iQEcBAEBCAAGBQJKpm7nAAoJECLkKOvLj8sG0joIANYHrnNUXFrpstAwu1Hzcwd6
xBGIXTBmR5G1FN14INHwcu2CtMRFiPTLifgHUjDXYD945oLrC0x6/jHgJ688FBKV
ZxWsn1U2sNCvS1YZ3XnEhtrQmQHWNoaKtwdat/0H/8KNMvtYps6RFd+mKGE5NTsC
bsTpoK0aW3PO+R8C4FpZQ80LWE4q7kAlOuPh8Z037g1GIH/4N69XTfROzY66LSIC
Zau7QR0G+kpZQJzWVANiiYw14Q9e0wM8A/W+L/f20TC2oCai86Jy1iK/W3SpRuwC
XinAFlvko9MyGy7+0TOJ//RcLtzS/ALOccExmsdXFTQclhPnHZBn3RxCuv9lir0=
=A3qW
-----END PGP SIGNATURE-----
>From e45275d36de415cba2e07367985df407c676186f Mon Sep 17 00:00:00 2001
From: Uli Schlachter <[email protected]>
Date: Tue, 8 Sep 2009 16:43:53 +0200
Subject: [PATCH] popup_run_prompt: Avoid flicker
When the popup_run_prompt is first used, it creates a wibox via awful.wibox()
which makes that wibox visible immediately, but immediately afterwards it's
hidden again.
Avoid this flickering by not using awful.wibox and by setting .visible = false
before the .screen is set.
Signed-off-by: Uli Schlachter <[email protected]>
---
popup_run_prompt/init.lua | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/popup_run_prompt/init.lua b/popup_run_prompt/init.lua
index 0418953..6ea9c05 100644
--- a/popup_run_prompt/init.lua
+++ b/popup_run_prompt/init.lua
@@ -14,6 +14,9 @@ local beautiful = require("beautiful")
local lib = {
hooks = require("obvious.lib.hooks")
}
+local capi = {
+ wibox = wibox
+}
module("obvious.popup_run_prompt")
@@ -65,18 +68,17 @@ function ensure_init()
align = "left"
})
- runwibox[s] = awful.wibox({
- position = "float",
+ runwibox[s] = capi.wibox({
fg = beautiful.fg_normal,
bg = beautiful.bg_normal,
border_width = settings.border_width,
border_color = beautiful.bg_focus,
- screen = s
})
set_default(s)
runwibox[s].opacity = settings.opacity
runwibox[s].visible = false
runwibox[s].ontop = true
+ runwibox[s].screen = s
-- Widgets for prompt wibox
runwibox[s].widgets = {
--
1.6.3.3