nextfoam / baram

CFD for Everyone
https://baramcfd.org/
GNU General Public License v3.0
92 stars 18 forks source link

Wayland session | Rolling menus can be detached #23

Closed Ricky-Tigg closed 1 year ago

Ricky-Tigg commented 1 year ago

kernel v.: 6.0 | distribution: Fedora | baram v.: 22.0.4 | window system: Wayland (served by Mutter in my user session)

Hello. Running BARAM:

[(...)]$ python3.11 -m venv venv && source ./venv/bin/activate
(venv) [(...)]$ python main.py
Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

Rolling menus can be detached from their window. Not reproducible on X.org. Illustration:

baram_v _22 0 4_Wayland

jiban commented 1 year ago

Thank you for the clarification. Yes, I saw it on Windows too. I could not find the root cause of it. Actually that rolling menu is managed by QT itself, and I have no control of it. However, I will investigate it more.

jiban commented 1 year ago

In replying to Issue #26, a question has arisen. According to my test and your error in Issue #26, MainWindow(The window you captured above) cannot be opened on wayland. How could you see the captured screen on wayland? (There might be a difference between your installation of Rocky Linux and mine)

Ricky-Tigg commented 1 year ago

Ticket 26 is made against a VM (QEMU Standard PC Q35 + ICH9, 2009),. and Rocky with defaults, among them Gnome 40.4.0.

Here the machine is physical, Gnome 43.1, and Fedora. Regardless a session being on X.org or Wayland, by pressing the key dedicated for screen printing e.g. prt scr on my laptop, a capture can be taken. You shall see by testing.

Ricky-Tigg commented 1 year ago
]$ dnf -q rq --installed --archlist noarch,x86_64 --qf '%{name} %{version}' gcc python3 vte291 glibc openmpi git-core xcb-util* qt* | column
gcc 12.2.1          qt5-qtx11extras 5.15.7
git-core 2.38.1         qt5-qtxmlpatterns 5.15.7
glibc 2.36          qt5-srpm-macros 5.15.7
openmpi 4.1.4           qt6-qtbase 6.4.1
python3 3.11.0          qt6-qtbase-common 6.4.1
qt 4.8.7            qt6-qtbase-gui 6.4.1
qt-common 4.8.7         qt6-qtdeclarative 6.4.1
qt-settings 37.0        qt6-qtsvg 6.4.1
qt-x11 4.8.7            qt6-qtwayland 6.4.1
qt5-qtbase 5.15.7       vte291 0.70.1
qt5-qtbase-common 5.15.7    xcb-util 0.4.0
qt5-qtbase-gui 5.15.7       xcb-util-image 0.4.0
qt5-qtcharts 5.15.7     xcb-util-keysyms 0.4.0
qt5-qtdeclarative 5.15.7    xcb-util-renderutil 0.3.9
qt5-qtwayland 5.15.7        xcb-util-wm 0.4.1
jiban commented 1 year ago

Ok, Now I see you have so many different testing environments!

By the way, I found that even QT designer showed the detaching. It might be an internal bug of QT itself.

image

Ricky-Tigg commented 1 year ago

Indeed, that what it seems to me as well, then we can close.