On 20.05.2012 20:54, Vasya Belkin wrote:
> Hello. I have a problem with tooltips, attached to buttons in wibox.
> Basically, I want to add a full screen wibox with icons (build a desktop -
> yes, I do know about the existing implementation of freedesktop standard)
> to run some programs on a TV, attached as the second screen. The tooltips
> attached flicker enormously (many times a second). I use Awesome 3.4.11 on
> ArchLinux 64b, with Xorg  1.12.1.902 + Nvidia 275.43 on 9500GT card. Could
> someone, please, correct the errors, if any, that cause flickering in the
> following reference application:
> 1. deskpanel.lua:
> 
> local awful = require('awful')
> local beautiful = require('beautiful')
> local wibox = require('wibox')
> local screen = require('screen')
> 
> module("deskpanel")
> 
> function new()
>    local sd = wibox({height = 800, width = 800})
>    sd.screen = 1
>    local geom = {
>       {x = 500, y = 500, width = 128, height = 128}
>    }
>  local b = awful.widget.button({image=beautiful.awesome_icon})
>  t1 = awful.tooltip({objects={b}})
>  t1:set_text('fhdjfhdgjhfjghf')
>  sd.widgets ={b, layout = function() return geom end}
> end
> 
> 2. Something like that in rc.lua:
> require("deskpanel")
> globalkeys=awful.util.table.join(
> ...,
> awful.key({ modkey }, "g", function() deskpanel.new() end)
> )
> 
> 
> The same t1 attached to clock, for example, does not cause any issues. What
> is strange, is that sometimes, the tooltip is shown correctly, without
> constant redraws, until I move the mouse once again. So, say, it may start
> flickering, than fix itself, than looses it again. And I suspect, it is
> more a bug in Awesome, than errors on my side, because of this.
> Thank you

Urgh. I hate bugs.

https://awesome.naquadah.org/bugs/index.php?do=details&task_id=1003

Half-working workaround: In awful/tooltip.lua, function place(self), replace the
call to a_placement.under_mouse(self.wibox) with:

    local geom = self.wibox:geometry()
    local coords = mouse.coords()
    self.wibox:geometry({ x = coords.x, y = coords.y })

However, this isn't really enough to fix this.

Uli
-- 
Bitte nicht mit dem verbleibenden Auge in den Laser gucken.
 - Vincent Ebert

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

Reply via email to