wxGLCanvas inside wxPopupWindow: wrong positioning on Wayland. (Issue #24102)

39 views
Skip to first unread message

dsa-t

unread,
Nov 29, 2023, 5:45:01 PM11/29/23
to wx-...@googlegroups.com, Subscribed

Description

See this code for the cube sample: cube-popup.zip

It creates a wxPopupWindow with a wxGLCanvas which moves it with the mouse cursor, aka hides, sets position, shows (we use that in KiCad for hover previews, on other platforms hiding is not necessary).

The GL canvas is positioned wrong, as seen in the video, also the menu doesn't show up:

GDK_BACKEND=wayland samples/opengl/cube/cube

https://github.com/wxWidgets/wxWidgets/assets/37658952/8234c9ed-94ce-4c9c-bebc-7ac387a0ab50

Works better on XWayland:

GDK_BACKEND=x11 samples/opengl/cube/cube

https://github.com/wxWidgets/wxWidgets/assets/37658952/7ab40756-d843-441c-9698-16fd52fc579b

Platform and version information

  • wxWidgets version you use: 3.2 tip (e8d51af)
  • wxWidgets port you use: wxGTK
  • OS and its version: Ubuntu 23.10
    • GTK version: 3.24.38-5ubuntu1
    • Which GDK backend is used: Wayland
    • Desktop environment : KDE 4:5.27.8-0ubuntu1


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24102@github.com>

dsa-t

unread,
Nov 29, 2023, 5:54:10 PM11/29/23
to wx-...@googlegroups.com, Subscribed

On GNOME, it's flickering.

https://github.com/wxWidgets/wxWidgets/assets/37658952/719be5a5-3fd6-4666-b548-8d10231da1a2


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24102/1832827798@github.com>

dsa-t

unread,
Nov 29, 2023, 7:21:59 PM11/29/23
to wx-...@googlegroups.com, Subscribed

Also would be good to know if wxWidgets can move the popup window without hiding it, or is it the usual Wayland limitation?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24102/1832906914@github.com>

dsa-t

unread,
Nov 29, 2023, 7:54:46 PM11/29/23
to wx-...@googlegroups.com, Subscribed

And on Sway + Wayland GDK_BACKEND, the popup shows up once, does not move, and disappears when mouse cursor leaves the top-level window.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/24102/1832933684@github.com>

Reply all
Reply to author
Forward
0 new messages