j4-dmenu-desktop icon indicating copy to clipboard operation
j4-dmenu-desktop copied to clipboard

j4-dmenu-desktop + dmenu works but does not show on screen

Open FromOopsToOps opened this issue 3 years ago • 4 comments

I'm not even sure how to word this problem.

I was using my system just fine (Gentoo, Wayland, Sway, j4-dmenu-desktop, dmenu, no xwayland) without any problems then suddenly it stopped showing up on screen. I thought... okay?... and restarted Sway. Now menu does not show anywhere BUT it works! If I press Win+D, type "brave" without seeing any return on screen and press enter, Brave Browser gets started. So it IS working, but it's not SHOWING on screen.

I'm not sure how to debug the reason behind this. I wasn't doing anything special at the time.

FromOopsToOps avatar Jun 30 '21 14:06 FromOopsToOps

Try running dmenu by itself. Enter some random options and then press ^D (ctrl-D) to send an EOF. If the menu doesn't popup then, it's a dmenu problem.

enkore avatar Jun 30 '21 16:06 enkore

@enkore I discovered what the issue is, but I don't know whose fault it is. :D

I issued the command swaymsg output eDP-1 pos 0 135 res 1366x768 scale 0.75 to configure my internal screen. j4-dmenu-desktop was being drawn where I suppose was pos 0 0 so it was being drawn out of screen. Setting pos 0 0 made j4-dmenu-desktop appear on screen again.

Like I said, I don't know whose fault it is. Is it because wayland is not telling j4 where to draw? Is it j4 for not probing screen geometry? Is it mine because I should tell j4 the geometry myself?

FromOopsToOps avatar Jun 30 '21 17:06 FromOopsToOps

Interesting issue... but most likely a problem between dmenu and sway - remember that j4dd itself doesn't know anything about X11 or wayland, it just calls dmenu(1) and that's what actually shows a graphical menu. So you should be able to reproduce this even with j4dd out of the loop, just using dmenu(1) itself.

enkore avatar Jun 30 '21 17:06 enkore

I can confirm the issue is regarding the pos 0 135 setting, as I set pos 0 2 to test and it cut the menu in about half. So yeah, menu is being displayed on pos 0 0. I can confirm the issue is not limited to dmenu as I tried again with bemenu and the same thing happens with bemenu. Both were started by j4-dmenu-desktop though.

FromOopsToOps avatar Jun 30 '21 18:06 FromOopsToOps