[Regression 44.0 -> 44.1] Context menu not working for Xwayland apps like zoom
Affected version
- OS: Fedora 38
- Affected Mutter version: >= 44.1
- Appears when runnning Xwayland applications
- Used hardware: Lenovo T14s gen2 amd
Bug summary
Context menus of Xwayland clients are not shown correctly the window flickers for a short time and is than instantly hidden, no chance to do any action on the context menu.
Steps to reproduce
- Build mutter from main branch
- Run nested mutter: MUTTER_DEBUG_DUMMY_MODE_SPECS=1600x900 LD_PRELOAD="src/libmutter-12.so.0.0.0 clutter/clutter/libmutter-clutter-12.so" src/mutter --nested --wayland
- Start zoom in nested mutter: XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.N2S941 DISPLAY=:2 zoom
What happened
When opening a context menu of a Xwayland application it does not work.
What did you expect to happen
Context menu should open normally like it did in version 44.0
Relevant logs, screenshots, screencasts etc.
I was able to bisect the problem here is the bisect log, I also confirmed that the bug i fixed after reverting the bad commit:
jbu@jbu-laptop ~/workspace/oss/mutter/build ((5eb17a362...)|BISECTING) $ git bisect log
git bisect start
# status: waiting for both good and bad commits
# bad: [3b7ca42c6f5d06874a31d5435cfd58ea68032d24] cogl/clip-stack: Removing window rect
git bisect bad 3b7ca42c6f5d06874a31d5435cfd58ea68032d24
# status: waiting for good commit(s), bad commit known
# good: [57fdd7efd2d2ef05df86c60e36e200a15a9918a0] frames: Use cairo renderer on GTK frames
git bisect good 57fdd7efd2d2ef05df86c60e36e200a15a9918a0
# bad: [1a4f03bd79a2ba502dbd6a932ec20a73921d6709] wayland/surface: NULL check surface resource in handle_output_bound()
git bisect bad 1a4f03bd79a2ba502dbd6a932ec20a73921d6709
# bad: [5b26db8ae85bf86bdf586cc1d698ba7e59161494] clutter: Remove struct paddings
git bisect bad 5b26db8ae85bf86bdf586cc1d698ba7e59161494
# bad: [7f18cae282561be3a53179d8186ff3dd5b1fefc5] edid: Integrate libdisplay-info for edid parsing
git bisect bad 7f18cae282561be3a53179d8186ff3dd5b1fefc5
# bad: [18be74edeb58d755f7e9647f70e9faf4e4259f21] core: Fix map transitions for X11 windows on Wayland
git bisect bad 18be74edeb58d755f7e9647f70e9faf4e4259f21
# good: [5eb17a362e880e6d53a2202ee15c962940f1c4a5] tests: Avoid CSD window in test
git bisect good 5eb17a362e880e6d53a2202ee15c962940f1c4a5
# first bad commit: [18be74edeb58d755f7e9647f70e9faf4e4259f21] core: Fix map transitions for X11 windows on Wayland
Screencast of the bug:
Screencast_from_2023-05-18_21-38-46
Screencast of main branch with the bad commit reverted:
Edited by J-Bu