gecko-dev/widget/gtk
Emilio Cobos Álvarez eb1c40734b Bug 1823336 - [wayland] For unanchored popups don't read anchor / popup gravity. r=stransky
This matches the nsMenuPopupFrame code.

There are a few places where we want to fix our position, and I unified
how we do this in the regressing bug.

ShouldFollowAnchor() = false popups like this used to just not be repositioned directly:

  https://hg.mozilla.org/mozilla-central/rev/c15f0fb1c92375ea751b3916a4c25a34403f21b2#l9.274

IsNoAutoHide() popups fixed their position once:

  https://hg.mozilla.org/mozilla-central/rev/c15f0fb1c92375ea751b3916a4c25a34403f21b2#l9.867

I unified in the noautohide behavior but in a better place here:

  https://hg.mozilla.org/mozilla-central/rev/c15f0fb1c92375ea751b3916a4c25a34403f21b2#l9.1182

But this trips this Wayland code which wasn't treating AnchorType_Point
popups properly.

The fact that this popup doesn't follow the anchor feels wrong, but is
pre-existing.

Differential Revision: https://phabricator.services.mozilla.com/D173004
2023-03-21 12:32:02 +00:00
..
compat
crashtests
mozgtk
mozwayland
wayland
AsyncDBus.cpp
AsyncDBus.h
AsyncGtkClipboardRequest.cpp
AsyncGtkClipboardRequest.h
components.conf
CompositorWidgetChild.cpp
CompositorWidgetChild.h
CompositorWidgetParent.cpp
CompositorWidgetParent.h
DMABufLibWrapper.cpp
DMABufLibWrapper.h
DMABufSurface.cpp Bug 1809026 [Linux] Reference DMABufSurface when it's created/imported r=emilio 2023-02-27 11:20:33 +00:00
DMABufSurface.h
GfxInfo.cpp Bug 1802844 [Linux] Disable HW_DECODED_VIDEO_ZERO_COPY on AMD hardware r=aosmond 2023-03-09 08:57:42 +00:00
GfxInfo.h Backed out 2 changesets (bug 1777849) for causing webgl crashes. CLOSED TREE 2023-02-25 15:29:32 +02:00
GRefPtr.h
gtk3drawing.cpp
GtkCompositorWidget.cpp Bug 1813407 [Linux] Allow to initialize WindowSurfaceProvider with GtkCompositorWidget for OMTC rendering r=emilio 2023-02-23 10:52:14 +00:00
GtkCompositorWidget.h Bug 1813407 [Linux] Allow to initialize WindowSurfaceProvider with GtkCompositorWidget for OMTC rendering r=emilio 2023-02-23 10:52:14 +00:00
gtkdrawing.h
GUniquePtr.h
IMContextWrapper.cpp Bug 1810406 - Handle asynchronous composition without synthesized GDK_KEY_PRESS event r=m_kato 2023-02-21 22:51:43 +00:00
IMContextWrapper.h Bug 1810406 - Handle asynchronous composition without synthesized GDK_KEY_PRESS event r=m_kato 2023-02-21 22:51:43 +00:00
InProcessGtkCompositorWidget.cpp
InProcessGtkCompositorWidget.h
MediaKeysEventSourceFactory.cpp
moz.build
MozContainer.cpp
MozContainer.h
MozContainerWayland.cpp
MozContainerWayland.h
MPRISInterfaceDescription.h
MPRISServiceHandler.cpp
MPRISServiceHandler.h
NativeKeyBindings.cpp
NativeKeyBindings.h
NativeMenuGtk.cpp
NativeMenuGtk.h
NativeMenuSupport.cpp
nsApplicationChooser.cpp
nsApplicationChooser.h
nsAppShell.cpp
nsAppShell.h
nsBidiKeyboard.cpp
nsBidiKeyboard.h
nsClipboard.cpp
nsClipboard.h
nsClipboardWayland.cpp
nsClipboardWayland.h
nsClipboardX11.cpp
nsClipboardX11.h
nsColorPicker.cpp
nsColorPicker.h
nsDeviceContextSpecG.cpp
nsDeviceContextSpecG.h
nsDragService.cpp
nsDragService.h
nsFilePicker.cpp Bug 1816740 [4/6] - convert nsIFilePicker::mode* into a proper enum r=ipc-reviewers,karlt,mstange,handyman,nika 2023-02-22 21:05:24 +00:00
nsFilePicker.h Bug 1816740 [3/6] - convert nsIFilePicker::result* into a proper enum r=ipc-reviewers,karlt,mstange,handyman,nika 2023-02-22 21:05:23 +00:00
nsGtkCursors.h
nsGtkKeyUtils.cpp
nsGtkKeyUtils.h
nsGTKToolkit.h
nsGtkUtils.h
nsImageToPixbuf.cpp
nsImageToPixbuf.h
nsLookAndFeel.cpp Bug 1736914 - Implement prefers-reduced-transparency media query r=geckoview-reviewers,emilio,jonalmeida,ohall 2023-03-13 21:30:17 +00:00
nsLookAndFeel.h Bug 1819034 - Reset LookAndFeel only if color scheme is really changed r=stransky 2023-02-28 14:08:37 +00:00
nsNativeThemeGTK.cpp Bug 1817396 - Try to draw the native GTK tooltip a bit harder. r=stransky 2023-02-20 16:18:26 +00:00
nsNativeThemeGTK.h
nsPrintDialogGTK.cpp
nsPrintDialogGTK.h
nsPrintSettingsGTK.cpp
nsPrintSettingsGTK.h
nsPrintSettingsServiceGTK.cpp
nsPrintSettingsServiceGTK.h
nsShmImage.cpp
nsShmImage.h
nsSound.cpp
nsSound.h
nsToolkit.cpp
nsUserIdleServiceGTK.cpp
nsUserIdleServiceGTK.h
nsWaylandDisplay.cpp
nsWaylandDisplay.h
nsWidgetFactory.cpp
nsWidgetFactory.h
nsWindow.cpp Bug 1823336 - [wayland] For unanchored popups don't read anchor / popup gravity. r=stransky 2023-03-21 12:32:02 +00:00
nsWindow.h Bug 1747722 - Allow changing window class hints using attributes. r=emilio,stransky 2023-03-02 16:22:05 +00:00
PCompositorWidget.ipdl
PlatformWidgetTypes.ipdlh
ScreenHelperGTK.cpp
ScreenHelperGTK.h
TaskbarProgress.cpp
TaskbarProgress.h
WakeLockListener.cpp
WakeLockListener.h
WaylandBuffer.cpp
WaylandBuffer.h
WaylandVsyncSource.cpp
WaylandVsyncSource.h
WidgetStyleCache.cpp
WidgetStyleCache.h
WidgetTraceEvent.cpp
WidgetUtilsGtk.cpp Bug 1822315 - Ignore empty env vars in desktop environment detection. r=stransky 2023-03-16 14:48:39 +00:00
WidgetUtilsGtk.h
WindowSurface.h
WindowSurfaceProvider.cpp Bug 1813407 [Linux] Allow to initialize WindowSurfaceProvider with GtkCompositorWidget for OMTC rendering r=emilio 2023-02-23 10:52:14 +00:00
WindowSurfaceProvider.h Bug 1813407 [Linux] Allow to initialize WindowSurfaceProvider with GtkCompositorWidget for OMTC rendering r=emilio 2023-02-23 10:52:14 +00:00
WindowSurfaceWaylandMultiBuffer.cpp Bug 1813407 [Linux] Get window size from compositor widget if possible in WindowSurfaceWaylandMultiBuffer backend r=emilio 2023-02-23 10:52:15 +00:00
WindowSurfaceWaylandMultiBuffer.h Bug 1813407 [Linux] Get window size from compositor widget if possible in WindowSurfaceWaylandMultiBuffer backend r=emilio 2023-02-23 10:52:15 +00:00
WindowSurfaceX11.cpp
WindowSurfaceX11.h
WindowSurfaceX11Image.cpp
WindowSurfaceX11Image.h
WindowSurfaceX11SHM.cpp
WindowSurfaceX11SHM.h