-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Julien Danjou wrote:
> Hi Sébastien,
> 
> At 1252404617 time_t, Sébastien Gross wrote:
>> +local function set_defaults(obj)
>> +    obj.tt_wibox.border_width = beautiful.tooltip_border_width or 
>> beautiful.border_width or 1
>> +    obj.tt_wibox.border_color = beautiful.tooltip_border_color or 
>> beautiful.border_normal
>> +    obj.tt_wibox.opacity = beautiful.tooltip_opacity or 1
>> +    obj.tt_wibox.bg = beautiful.tooltip_bg_color or beautiful.bg_focus or 
>> "#ffcb60"
>> +    obj.fg = beautiful.tooltip_fg_color or beautiful.fg_focus or "#000000"
>> +    obj.font = beautiful.tooltip_font or beautiful.font or "terminus 6"
>> +end
>> +
>> +
>> +--- create
>> +-- @param _
>> +-- @param on_widget the widget to be linked with the tooltip
>> +-- @param func a function to dynamicaly change the tooltip text
>> +-- Create a new tooltip and link it to a widget
>> +local function create(_, on_widget, func)
>> +    local obj = {
>> +        x_offset = 1,
>> +        y_offset = 1,
>> +        x_margin = 2,
>> +        y_margin = 2,
>> +
>> +        tt_wibox =  awful.wibox({
>> +            position = "float",
>> +            }),
> 
> Err, position = "float" is not correct. You probably need to use wibox()
> directly. awful.wibox() creates wibox attached to the border of the
> screen, it's not meant to be used for floating wiboxes.
> Besides that, you never set the screen of the wibox, you let awful.wibox
> set it to 1, which will fails in multi-head env.

Julien, would you mind if we made awful.wibox() error out or at least warn on
invalid positions? (invalid being "none of left, right, top, bottom")
I saw the same thing in obvious today. :(

I'd volunteer to write that patch. :)

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)

iQEcBAEBCAAGBQJKpoT/AAoJECLkKOvLj8sGqXwH/Rnb7PQzoDkSFf+JbNQNTbbB
XyWEwJcRoGSynmAIA6WY72kDgX/GseIuExqu0/InqSZ0EqM3NBQdmh6p86s9oai8
8zk0ZLQD7nQsUAHQBBXaiQE/kDRBt2Nilw5DYv7Dzoz478b8Z/uHx1qDYU0kj4Ea
XYJ/cEFc7nTIOwC6BwXllBc1so77B1f0CRhWbQxNcUVdUjK48sqLl3f1SrMRJ2p/
sRjkAVeFvOIwxxU3eJjX5+weEuKJTsjRx37gVr2RIGSpxuXWfqDRB4wEGB4zDM5y
5tDqIO23CSmtJcQ2oSLeJwNpAI+CFXXbUN5GCTgGWurDdJBz8bTWjzIVEXJ6K0Y=
=q0A3
-----END PGP SIGNATURE-----

-- 
To unsubscribe, send mail to [email protected].

Reply via email to