Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bling tag preview cut off image #187

Open
eylles opened this issue Dec 8, 2022 · 4 comments
Open

bling tag preview cut off image #187

eylles opened this issue Dec 8, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@eylles
Copy link
Contributor

eylles commented Dec 8, 2022

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?

@javacafe01
Copy link
Member

@eylles Is it the same for all clients?

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

@eylles
Copy link
Contributor Author

eylles commented Dec 10, 2022

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

@Nooo37 Nooo37 added the bug Something isn't working label Dec 23, 2022
@JuanZoran
Copy link

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

@eylles
Copy link
Contributor Author

eylles commented Apr 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants