swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.64k stars 1.11k forks source link

Notification menu pop-up at wrong location/screen #5247

Open ocehugo opened 4 years ago

ocehugo commented 4 years ago

Background: I got an xwayland application running with a notification tray icon (Zoom). My swaybar is at the bottom, and the notification tray is at bottom-right.

Current Behaviour: I left-click on the icon at the swaybar, the pop-up menu is show at the top-left corner of the screen.

Expected Behaviour: The menu is shown at the bottom-right, just above the icon (as in i3).

The problem is more cumbersome when there are other screens attached. My setup is a two-monitor side-by-side with laptop screen shutoff/lid down( by kanshi profile). When I left click on the tray icon in this setup, the notification pop-up menu is not render in any of the monitors, except the laptop one (I can see it when I enable the laptop screen back).

PS: Debug above is for the case with a single screen.

x10an14 commented 3 years ago

I've got the same issue myself, would a second debug log be of any help?

elmuz commented 3 years ago

Same here (Zoom + swaybar). The icon in on the bottom right, right-click for contextual menu, it opens in the top left.

RobinMcCorkell commented 3 years ago

I think this may be the same issue that I'm facing, with X11 app right click menus (e.g. Chrome) which are invisible after I have connected and disconnected a display. More specifically, the external display is "above" my laptop display, so after unplugging it, coordinate (0,0) is no longer on a visible screen, which may be related.