Skip to content

cpu widget gets placed off screen sometimes #408

@saevarb

Description

@saevarb

Problem

After starting or restarting awesome, and clicking the CPU widget, the popup gets placed off screen when using multiple monitors(or even when using a small xephyr window), but only in the beginning. Hiding it and then clicking again correctly respects screen boundaries.

Right after restarting and clicking widget

image

After hiding popup and clicking again

image

Yellow line indicates screen boundary.

Additional info

awm version

awesome v4.3-1606-g0e5fc4575-dirty (Too long)
 • Compiled against Lua 5.4.6 (running with 0.9.2)
 • API level: 4
 • D-Bus support: yes
 • xcb-errors support: no
 • execinfo support: yes
 • xcb-randr version: 1.6
 • LGI version: /usr/share/lua/5.4/lgi/version.lua
 • Transparency enabled: yes
 • Custom search paths: no

Also happens on stable awm.

Notes

I looked at the code and saw that it is using popup:move_next_to which claims to take care of this, and also found this issue comment which is related.

I'm pretty new to awm and lua, but I did play around with some awful.placements but the only thing that really worked was just placing it in the top right corner, and while that would be fine for me, it's not a general solution that works if people are using e.g. vertical bars or at the bottom.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions