Closed Bug 1562576 Opened 5 years ago Closed 3 years ago

[Wayland] Context submenus appear in wrong position near screen edges

Categories

(Core :: Widget: Gtk, defect, P3)

68 Branch
Unspecified
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ke5trel, Assigned: jhorak)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

STR:

  1. Maximize window.
  2. Right-click in the bottom-right corner of page.
  3. Open the Send Page to Device submenu.

The submenu should be aligned with its menu item without covering it but is either vertically offset or does not appear at all.

Regression window for submenu position not aligned with parent menu item:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=e8b8985aa697ef4dad6ed72957186c658669bc1d&tochange=7d383b757d50494cb68ba7b1129d6457765a3314

Regressed by Bug 1546374.

Regression window for submenu positioned over the context menu:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=1720abb3a1b5872f0629f200268eb01fd15fa1d4&tochange=25176eee4a95239a5bf2c6558fe0ac46cd6df594

Regressed by Bug 1423598.

Priority: -- → P3
Assignee: nobody → jhorak

What is really problematic is that menus that appear outside of the window cannot be clicked on.
When they are clicked on, their color change from blue (of being in focus as the cursor is hovering them) to white and come back to blue after moving the cursor. What should happen is that the menu disappears and the action is performed.

Clicks are not registered and nothing happens outside of the flickering described.

Kestrel, do you have only one monitor or do you have a multi-monitor setup? I am trying to find out if bug 1606010 is actually a duplicate of this bug because I observed something similar to this one.

Flags: needinfo?(ke5trel)
Has Regression Range: --- → yes

I am clearing the needinfo request because I added more information to bug 1606010.

Flags: needinfo?(ke5trel)

This happened with a single display. Currently the submenu does reliably appear within the bounds of the screen and usually aligned properly with the parent item, however there are still the following issues:

  • The context menu does not appear above the cursor when close to the bottom of the screen. This can cause misclicks and misalignment of submenus.
  • Submenus cover the parent menu when near the right screen edge instead of appearing on the opposite side.
Summary: [Wayland] Context submenus appear in wrong position near screen edges and are sometimes not visible → [Wayland] Context submenus appear in wrong position near screen edges

(In reply to Kestrel from comment #4)

This happened with a single display. Currently the submenu does reliably appear within the bounds of the screen and usually aligned properly with the parent item, however there are still the following issues:

  • The context menu does not appear above the cursor when close to the bottom of the screen. This can cause misclicks and misalignment of submenus.
  • Submenus cover the parent menu when near the right screen edge instead of appearing on the opposite side.

The first part is fixed in bug 1614062, the second unfortunately not yet.

See Bug 1623974 which has a patch.

Blocks: wayland-popup
No longer blocks: wayland

Can you please test latest nightly under Wayland? A new popup handling code landed there.
Thanks.

Please re-test with new nightly as it gets another popup fixes.
Thanks.

I don't see any of the above mentioned issues with the current Nightly (using a single screen configuration), everything works as expected.

Okay, Thanks.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: