bling icon indicating copy to clipboard operation
bling copied to clipboard

bling tag preview cut off image

Open eylles opened this issue 2 years ago • 4 comments

image

i just got the feeling that this is not how it should look, at all.

for bling i'm using the latest commit to master.

the code of the task preview widget i used:

bling.widget.task_preview.enable {
    height = 200,              -- The height of the popup
    width = 300,               -- The width of the popup
    placement_fn = function(c) -- Place the widget using awful.placement (this overrides x & y)
        awful.placement.top(c, {
            margins = {
                top = 30
            }
        })
    end
}

the code of the tasklist itself:

    -- Create a tasklist widget
    s.mytasklist = awful.widget.tasklist {
        screen  = s,
        filter  = awful.widget.tasklist.filter.currenttags,
        buttons = tasklist_buttons,
        style = { 
            shape = function(cr, width, height) gears.shape.rectangle(cr, width, height, height/4) end,
            },
        layout   = {
            spacing = 5,
            layout  = wibox.layout.fixed.horizontal
        },
        widget_template = {
            {
                {
                    {
                        id     = 'clienticon',
                        widget = awful.widget.clienticon,
                    },
                    left = 6,
                    right = 6,
                    top = 1,
                    bottom = 1,
                    widget  = wibox.container.margin
                },
                id            = 'background_role',
                widget        = wibox.container.background,
            },
            create_callback = function(self, c, index, objects) --luacheck: no unused args
                self:get_children_by_id('clienticon')[1].client = c

                -- BLING: Toggle the popup on hover and disable it off hover
                self:connect_signal('mouse::enter', function()
                        awesome.emit_signal("bling::task_preview::visibility", s,
                                            true, c)
                    end)
                    self:connect_signal('mouse::leave', function()
                        awesome.emit_signal("bling::task_preview::visibility", s,
                                            false, c)
                    end)
            end,
            layout = wibox.layout.align.vertical,
        },
    }

any idea where did i screw up?

eylles avatar Dec 08 '22 05:12 eylles

@eylles Is it the same for all clients?

Can you try changing tags and going back to the original tag?

javacafe01 avatar Dec 10 '22 03:12 javacafe01

yep, same for all clients, changing tags back and forth does nothing, it is the same problem

image

image

with some clients i just get the icon and name at first image

after changing tag i get a preview, but it is the same problem, it has the cut off image image

no difference between gtk and qt programs tho image

eylles avatar Dec 10 '22 06:12 eylles

did u solve this problem? I met the same issue on my machine

JuanZoran avatar Apr 13 '23 14:04 JuanZoran

nope, i just gave up on both task preview and tag preview.

eylles avatar Apr 13 '23 16:04 eylles