sway icon indicating copy to clipboard operation
sway copied to clipboard

Menus disappearing/not staying visible

Open cherti opened this issue 3 years ago • 8 comments

  • Sway Version: 1.7

  • Debug Log: https://gist.github.com/cherti/2bbe4ec116e3b8242fd50dea7e6bdf34

  • Configuration File: https://gist.github.com/cherti/e4002cfa7378059210629bdd6edfbb84

  • Description:

As by request from https://bugzilla.mozilla.org/show_bug.cgi?id=1769323 , issue is reopened here, the changeset in question inside Firefox is bisected there.

Steps to reproduce:

1. make sure you are on Firefox 100 and Wayland/MOZ_ENABLE_WAYLAND=1
2. Visit a website, such as mozilla.org
3. bookmark website via the star in the URL-bar
4. select a different location

This is just an example, a similarly looking issue occurs with for example the context menu, however is not reliably reproducible, hence I haven't figured out the exact circumstances yet.

Actual results:

The bookmark-popup vanishes and just the location-submenu stays visible (see attached image). When selecting something there, the star still shows as "pressed". Hitting escape makes it go empty again, hitting enter makes it stay blue, strongly implying that the popup window is still there and functioning, Return triggering setting the bookmark, escape triggering an abort/remove bookmark.

This behavior is reproducible with nightly, it occurs under sway 1.7, gtk3-version is 1:3.24.33-3. gtk3 is the same version that was installed .

firefox-bug

Expected results:

The bookmark-popup should have stayed visible below the new menu.

This might be related to https://github.com/swaywm/sway/issues/7011 , originating in different code segments/changesets in Firefox, but maybe triggering the same bug.

cherti avatar May 16 '22 22:05 cherti

https://bugzilla.mozilla.org/show_bug.cgi?id=1769457

9p4 avatar May 18 '22 00:05 9p4

https://bugzilla.mozilla.org/show_bug.cgi?id=1769457

I think that is actually https://github.com/swaywm/sway/issues/7011, not this issue (unless they are the same).

cherti avatar May 18 '22 00:05 cherti

I think it's a similar root cause with the GTK overlays but I'll put that link there too :)

9p4 avatar May 18 '22 00:05 9p4

This happens sometimes with Anki as well. I open a menu (the one at the top of the window) and if I select (but not click) an option, there are cases where the menu disappears. Pressing ENTER does not trigger the selected option. I have to close and open the menu popup again. Anki uses Qt.

Yutsuten avatar Jul 05 '22 02:07 Yutsuten

https://github.com/swaywm/sway/issues/6786#issuecomment-1059098260

528-491 avatar Jul 08 '22 08:07 528-491

@528-491 This issue is unrelated to #6786.

#6786 deals with popup menus that are too long to fit in either side of the display. (Think of a very small laptop display with 1.8 scaling, and then trying to open right-click context menu. The context menu is bigger than the space available above the mouse pointer, and bigger than the space available below the mouse pointer. So, firefox defaults to showing it below the mouse pointer. But since the menu doesn't fit, it flickers and causes firefox to crash.)

This issue deals with popup menus that disappear after some time. Even if the popup menu is currently focused, it sometimes disappears (while staying focused). If you were typing something in the context menu, you can still type it and press Enter to save the contents (since the context menu is still focused) but you can't see the popup itself.

subnut avatar Jul 13 '22 02:07 subnut

@subnut I'm sorry, you are right of course. I saw a duplicate of #6786 ( #7011 ) and wanted to quickly scan for other duplicates, which I may did a bit too quickly.

528-491 avatar Jul 13 '22 08:07 528-491

@528-491 The whole situation is very messy. There are lot of bug reports in sway and bugzilla and they are often using different terms (e.g. menu vs popup vs subwindow or flickering vs blinking vs disappear). To make things worse, it is often difficult to say if they describe the same problem or slightly different problems with the same underlying cause.
A "meta-bug" to track all issues at once would be welcome.

schauveau avatar Jul 23 '22 10:07 schauveau