THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Carlos (memeplex) 

Attached to Project - awesome
Summary - Systray won't show with margin layout
Task Type - Bug Report
Category - awful
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Medium
Priority - Normal
Reported Version - 3.5.5
Due in Version - Undecided
Due Date - Undecided
Details - I took the default rc.lua and modified it this way:

    -- Widgets that are aligned to the right
    local right_layout = wibox.layout.fixed.horizontal()
    if s == 1 then
       local systray = wibox.widget.systray()
       local systray_margin = wibox.layout.margin()
       systray_margin:set_margins(1)
       systray_margin:set_widget(systray)
       right_layout:add(systray_margin)
    end
    right_layout:add(mytextclock)
    right_layout:add(mylayoutbox[s])

But the systray is not shown anymore. If I do the same for, say, the clock, 
everything works as expected. The systray won't work even when margins = 0.

The problem is in systray:fit. It's getting num_entries = 0 so the returned 
width is also 0. After that systray:draw is never called. I assume this is 
because the fit geometry request returned a 0 width. If I force num_entries to 
be the effective number of icons in my tray, the margin layout is then shown as 
expected (the right margin size with the icons inside).

I don't know why capi.awesome.systray() is returning 0 when called
from systray:fit. If I remove the margin layout then systray:draw is
called and num_entries is correctly computed. It's possible that fit is called 
too early when using the margin layout and at that point the systray is still 
empty.

More information can be found at the following URL:
https://awesome.naquadah.org/bugs/index.php?do=details&task_id=1293

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

--
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to