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

Context menu always opens in upper left corner #51

Open
njbirth opened this issue Apr 12, 2019 · 1 comment
Open

Context menu always opens in upper left corner #51

njbirth opened this issue Apr 12, 2019 · 1 comment

Comments

@njbirth
Copy link

njbirth commented Apr 12, 2019

I tried to create a simple context menu. However, when I click on the connected widget, the menu always opens in the upper left corner (and not on the position of the widget). For better reproducibility, I just used the default awesome configuration at /etc/xdg/awesome/rc.lua and added the following code:

local radical = require("radical")

local menu = radical.context {
    style      = radical.style.classic,
    item_style = radical.item.style.arrow_single ,
    layout     = radical.layout.vertical,
}

menu:add_item {text="Item 1"}
menu:add_item {text="Item 2"}
menu:add_item {text="Item 3"}

local menutextbox = wibox.widget.textbox("Menu")
menutextbox:set_menu(menu, "button::pressed", 1)

(I also added the menutextbox to the wibar.)

In addition, the x and y options of the menu don't seem to work. At least there is no effect when I add something like menu.x = 50.

I use Arch Linux and my awesome version is 4.3. The output of awesome --version is

awesome v4.3 (Too long)
 • Compiled against Lua 5.3.5 (running with Lua 5.3)
 • D-Bus support: ✔
 • execinfo support: ✔
 • xcb-randr version: 1.6
 • LGI version: 0.9.2

(I previously asked a similar question at Stack Overflow. You then recommended me to make a bug report.)

Edit: Screenshot added. The menutextbox is in the upper right corner of the wibar. The menu is in the upper left corner.

screenshot

@elig0n
Copy link

elig0n commented Jan 8, 2025

Any follow up on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants