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
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
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.![]()
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.![]()
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.![]()