make pinentry a floating window

Signed-off-by: martin f. krafft <madduck@madduck.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
martin f. krafft 2008-06-18 18:10:14 +02:00 committed by Julien Danjou
parent de0a799fb9
commit 81fb5ab50b
1 changed files with 4 additions and 1 deletions

View File

@ -317,7 +317,10 @@ function hook_manage(c)
-- if they're not focusable, so set border anyway.
c:border_set({ width = border_width, color = border_normal })
c:focus_set()
if c:name_get():lower():find("mplayer") then
if c:name_get():lower():find("pinentry") then
c:floating_set(true)
end
if c:name_get():find("mplayer") then
c:floating_set(true)
end
end