gecko-dev/widget/gtk
stransky 9ae73a5923 Bug 1789581 [Wayland] Call gdk_window_move() to reset GdkWindow internal position method r=emilio
When widget is hidden gtk_window_move() does not move the widget but sets new widget coordinates
when widget is mapped again.

If popup used move-to-rect before (GdkWindow has POSITION_METHOD_MOVE_TO_RECT set),
popup will use move-to-rect again when it's mapped and we'll get bogus move-to-rect callback.

In this patch we implement nsWindow::WaylandPopupMovePlain() to perform simple popup movement.
It calls gdk_window_move() to set position_method to POSITION_METHOD_MOVE_RESIZE when popup is hidden
so we'll use simple move when popup is shown and don't slip to move-to-rect.

Depends on D156821

Differential Revision: https://phabricator.services.mozilla.com/D157432
2022-09-19 10:39:16 +00:00
..
compat
crashtests
mozgtk Bug 1772721 [Linux] Add dummy call to mozgtk to prevent its removal r=emilio 2022-06-21 06:52:02 +00:00
mozwayland Bug 1747165 - Replace TK_FLAGS/TK_LIBS with MOZ_GTK3_FLAGS/MOZ_GTK3_LIBS. r=firefox-build-system-reviewers,andi 2021-12-23 20:29:07 +00:00
wayland Bug 1747165 - Replace TK_FLAGS/TK_LIBS with MOZ_GTK3_FLAGS/MOZ_GTK3_LIBS. r=firefox-build-system-reviewers,andi 2021-12-23 20:29:07 +00:00
AsyncDBus.cpp Bug 1772063 - Use Portal for Snap/Flatpak r=OlivierTilloy,emilio 2022-06-10 11:34:32 +00:00
AsyncDBus.h Bug 1772063 - Use Portal for Snap/Flatpak r=OlivierTilloy,emilio 2022-06-10 11:34:32 +00:00
AsyncGtkClipboardRequest.cpp Bug 1753411 - Deduplicate a bunch of the X11 vs. Wayland clipboard code. r=stransky 2022-02-04 22:09:44 +00:00
AsyncGtkClipboardRequest.h Bug 1753411 - Deduplicate a bunch of the X11 vs. Wayland clipboard code. r=stransky 2022-02-04 22:09:44 +00:00
CompositorWidgetChild.cpp
CompositorWidgetChild.h
CompositorWidgetParent.cpp Bug 1772513 - Fix various non-unified build issues in GTK widget code. r=stransky 2022-06-03 13:31:48 +00:00
CompositorWidgetParent.h
DMABufLibWrapper.cpp Bug 1773282 [Linux] Remove IsDMABufVAAPIEnabled() r=emilio,media-playback-reviewers,alwu 2022-06-29 12:09:02 +00:00
DMABufLibWrapper.h Bug 1773282 [Linux] Remove IsDMABufVAAPIEnabled() r=emilio,media-playback-reviewers,alwu 2022-06-29 12:09:02 +00:00
DMABufSurface.cpp Bug 1779425 - Check for GbmDevice before using it, r=stransky,jgilbert 2022-07-19 21:52:04 +00:00
DMABufSurface.h Bug 1735929 [Linux] Import DMABufSurfaceRGBA from existing EGLImage r=jgilbert,aosmond 2022-06-09 08:37:20 +00:00
GRefPtr.h Bug 1772063 - Use Portal for Snap/Flatpak r=OlivierTilloy,emilio 2022-06-10 11:34:32 +00:00
GUniquePtr.h Bug 1777269 [Wayland] Apply workaround for Mutter enter/leave bogus events r=emilio 2022-09-06 13:48:12 +00:00
GfxInfo.cpp Bug 1785947 - Fix Linux 32-bit WPT backdrop filter tests. r=gfx-reviewers,jrmuizel 2022-08-19 02:13:29 +00:00
GfxInfo.h Bug 1758473 - Move VA-API test into glxtest, r=stransky 2022-06-21 08:45:27 +00:00
GtkCompositorWidget.cpp Bug 1777664 [Linux] Remove redundant logging from GtkCompositorWidget r=emilio 2022-07-26 14:56:50 +00:00
GtkCompositorWidget.h
IMContextWrapper.cpp Bug 1772006 - Part 5: Simplify and move the string searching APIs from ns[T]StringObsolete, r=xpcom-reviewers,necko-reviewers,eeejay,dragana,barret 2022-07-30 00:12:48 +00:00
IMContextWrapper.h Merge autoland to mozilla-central. a=merge 2022-06-05 00:38:17 +03:00
InProcessGtkCompositorWidget.cpp Bug 1772513 - Fix various non-unified build issues in GTK widget code. r=stransky 2022-06-03 13:31:48 +00:00
InProcessGtkCompositorWidget.h
MPRISInterfaceDescription.h
MPRISServiceHandler.cpp Merge autoland to mozilla-central. a=merge 2022-06-04 00:43:15 +03:00
MPRISServiceHandler.h Bug 1760839 - Use more automatic memory management in GTK code. r=stransky 2022-03-23 16:14:34 +00:00
MediaKeysEventSourceFactory.cpp
MozContainer.cpp Bug 1782049 [Wayland] Print wayland mozcontainer logs as widget one r=emilio 2022-07-29 16:32:47 +00:00
MozContainer.h
MozContainerWayland.cpp Bug 1780389 [Wayland] Implement RAII class MozContainerSurfaceLock to get&lock wl_surface of moz_container r=rmader 2022-08-16 08:46:33 +00:00
MozContainerWayland.h Bug 1780389 [Wayland] Implement RAII class MozContainerSurfaceLock to get&lock wl_surface of moz_container r=rmader 2022-08-16 08:46:33 +00:00
NativeKeyBindings.cpp Bug 1191862 - part 1: Make `nsIWidget::NativeKeyBindingsType` independent from `nsIWidget` and defined in an independent header file r=smaug 2022-02-15 08:00:05 +00:00
NativeKeyBindings.h Bug 1191862 - part 1: Make `nsIWidget::NativeKeyBindingsType` independent from `nsIWidget` and defined in an independent header file r=smaug 2022-02-15 08:00:05 +00:00
NativeMenuGtk.cpp Bug 1775116 - Use last mouse press event to trigger native menus. r=stransky 2022-06-21 10:56:44 +00:00
NativeMenuGtk.h Bug 1758424 - Fire XUL events on native menus. r=stransky 2022-03-15 08:07:43 +00:00
NativeMenuSupport.cpp Bug 1757402 - Add basic native context menu support on GTK. r=stransky 2022-02-28 14:53:24 +00:00
PCompositorWidget.ipdl Bug 1751948 - Part 1: Fix IPDL unified build issues, r=ipc-reviewers,mccr8 2022-02-28 21:01:47 +00:00
PlatformWidgetTypes.ipdlh Bug 1751948 - Part 1: Fix IPDL unified build issues, r=ipc-reviewers,mccr8 2022-02-28 21:01:47 +00:00
ScreenHelperGTK.cpp Bug 1778767: Define MozClearPointer, a type-safe replacement for g_clear_pointer. r=stransky,jgilbert 2022-07-14 04:28:34 +00:00
ScreenHelperGTK.h Bug 1778767: Define MozClearPointer, a type-safe replacement for g_clear_pointer. r=stransky,jgilbert 2022-07-14 04:28:34 +00:00
TaskbarProgress.cpp Bug 1661450 - 2/8 Add wayland required code getting opt-out by disabling MOZ_X11 r=stransky,rmader 2022-04-20 09:32:07 +00:00
TaskbarProgress.h
WakeLockListener.cpp Bug 1780389 [Wayland] Implement RAII class MozContainerSurfaceLock to get&lock wl_surface of moz_container r=rmader 2022-08-16 08:46:33 +00:00
WakeLockListener.h
WaylandBuffer.cpp Bug 1778767: Define MozClearPointer, a type-safe replacement for g_clear_pointer. r=stransky,jgilbert 2022-07-14 04:28:34 +00:00
WaylandBuffer.h
WaylandVsyncSource.cpp Bug 1780389 [Wayland] Implement RAII class MozContainerSurfaceLock to get&lock wl_surface of moz_container r=rmader 2022-08-16 08:46:33 +00:00
WaylandVsyncSource.h Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw 2022-03-16 18:47:08 +00:00
WidgetStyleCache.cpp Bug 1749645 - Remove unused native scrollbar drawing on gtk. r=stransky 2022-01-12 17:06:12 +00:00
WidgetStyleCache.h Bug 1745589 - Ensure we also draw headerbar parent if the headerbar has no background. r=stransky 2021-12-13 10:48:36 +00:00
WidgetTraceEvent.cpp
WidgetUtilsGtk.cpp Bug 1297520 - For Snap, only install language for system locale. r=nalexander,OlivierTilloy 2022-09-12 18:41:56 +00:00
WidgetUtilsGtk.h Bug 1297520 - For Snap, only install language for system locale. r=nalexander,OlivierTilloy 2022-09-12 18:41:56 +00:00
WindowSurface.h
WindowSurfaceProvider.cpp Bug 1782006 [Wayland] Check if widget is live at WindowSurfaceProvider::EndRemoteDrawingInRegion() r=emilio 2022-07-29 16:29:59 +00:00
WindowSurfaceProvider.h Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw 2022-03-16 18:47:08 +00:00
WindowSurfaceWaylandMultiBuffer.cpp Bug 1780389 [Wayland] Implement RAII class MozContainerSurfaceLock to get&lock wl_surface of moz_container r=rmader 2022-08-16 08:46:33 +00:00
WindowSurfaceWaylandMultiBuffer.h Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw 2022-03-16 18:47:08 +00:00
WindowSurfaceX11.cpp Bug 1772513 - Fix various non-unified build issues in GTK widget code. r=stransky 2022-06-03 13:31:48 +00:00
WindowSurfaceX11.h Bug 1772513 - Fix various non-unified build issues in GTK widget code. r=stransky 2022-06-03 13:31:48 +00:00
WindowSurfaceX11Image.cpp Bug 1750017 [Linux] Don't set shape mask to released drawable, r=lsalzman 2022-01-17 19:14:13 +00:00
WindowSurfaceX11Image.h
WindowSurfaceX11SHM.cpp
WindowSurfaceX11SHM.h
components.conf Bug 1773770: Part 9 - Migrate widget component content proxies to static registration. r=mccr8 2022-06-30 09:12:18 +00:00
gtk3drawing.cpp Bug 1749645 - Remove unused native scrollbar drawing on gtk. r=stransky 2022-01-12 17:06:12 +00:00
gtkdrawing.h Bug 1749645 - Remove unused native scrollbar drawing on gtk. r=stransky 2022-01-12 17:06:12 +00:00
maiRedundantObjectFactory.c
maiRedundantObjectFactory.h
moz.build Bug 1778767: Define MozClearPointer, a type-safe replacement for g_clear_pointer. r=stransky,jgilbert 2022-07-14 04:28:34 +00:00
nsAppShell.cpp Bug 1343826 - Return updated timezone on system timezone change. r=smaug,mstange,stransky,handyman 2022-06-14 19:41:30 +00:00
nsAppShell.h Bug 1343826 - Return updated timezone on system timezone change. r=smaug,mstange,stransky,handyman 2022-06-14 19:41:30 +00:00
nsApplicationChooser.cpp Bug 1772513 - Fix various non-unified build issues in GTK widget code. r=stransky 2022-06-03 13:31:48 +00:00
nsApplicationChooser.h
nsBidiKeyboard.cpp
nsBidiKeyboard.h
nsClipboard.cpp Bug 1755863 - Part 2: Add async API/IPC for getting matching data flavors from clipboard; r=nika,geckoview-reviewers,m_kato 2022-08-15 20:27:26 +00:00
nsClipboard.h Bug 1743365 [Linux] Cache clipboard targets r=emilio 2022-02-11 07:43:11 +00:00
nsClipboardWayland.cpp Bug 1743365 [Linux] Cache clipboard targets r=emilio 2022-02-11 07:43:11 +00:00
nsClipboardWayland.h Bug 1743365 [Linux] Cache clipboard targets r=emilio 2022-02-11 07:43:11 +00:00
nsClipboardX11.cpp Bug 1743365 [Linux] Cache clipboard targets r=emilio 2022-02-11 07:43:11 +00:00
nsClipboardX11.h Bug 1743365 [Linux] Cache clipboard targets r=emilio 2022-02-11 07:43:11 +00:00
nsColorPicker.cpp
nsColorPicker.h
nsDeviceContextSpecG.cpp Bug 370035 - Remove the aWidget parameter from nsIDeviceContextSpec::Init.r=spohl 2022-05-23 19:34:40 +00:00
nsDeviceContextSpecG.h Bug 370035 - Remove the aWidget parameter from nsIDeviceContextSpec::Init.r=spohl 2022-05-23 19:34:40 +00:00
nsDragService.cpp Bug 1767460 [Linux] Implement RAII class for nsDragService::mEventLoopDepth r=emilio 2022-08-15 19:30:03 +00:00
nsDragService.h Bug 1767460 [Linux] Implement RAII class for nsDragService::mEventLoopDepth r=emilio 2022-08-15 19:30:03 +00:00
nsFilePicker.cpp Bug 1762708 - Undefine a LOG macro to fix tier2 X11 builds after adding a file. 2022-04-16 03:10:10 +02:00
nsFilePicker.h
nsGTKToolkit.h
nsGtkCursors.h
nsGtkKeyUtils.cpp Bug 1661450 - 4/8 Fix includes r=stransky 2022-04-20 09:32:08 +00:00
nsGtkKeyUtils.h Bug 1772513 - Fix various non-unified build issues in GTK widget code. r=stransky 2022-06-03 13:31:48 +00:00
nsGtkUtils.h Bug 1783195 [Linux] Implement MozClearHandleID to clean glib handle r=emilio 2022-08-08 17:52:20 +00:00
nsImageToPixbuf.cpp Bug 1760839 - Use more automatic memory management in GTK code. r=stransky 2022-03-23 16:14:34 +00:00
nsImageToPixbuf.h Bug 1760839 - Use more automatic memory management in GTK code. r=stransky 2022-03-23 16:14:34 +00:00
nsLookAndFeel.cpp Bug 1782858 - Make color-scheme affect Windows' non-native menus. r=desktop-theme-reviewers,dao 2022-08-03 20:33:09 +00:00
nsLookAndFeel.h Bug 1775247 - Implement AccentColor/AccentColorText and remove -moz-prefixed version of the color. r=mstange 2022-06-22 09:45:06 +00:00
nsNativeThemeGTK.cpp Bug 1773823 - Remove devPixelsPerPx special cases in LookAndFeel. r=stransky 2022-06-16 14:55:35 +00:00
nsNativeThemeGTK.h Bug 1749645 - Remove unused native scrollbar drawing on gtk. r=stransky 2022-01-12 17:06:12 +00:00
nsPrintDialogGTK.cpp Bug 1769129. Remove nsIPrintSettings.isPrintSelectionRBEnabled. r=emilio 2022-05-13 15:26:07 +00:00
nsPrintDialogGTK.h Bug 1769113 - Kill off nsIPrintingPromptService and use nsIPrintDialogService directly. r=emilio 2022-05-13 11:20:59 +00:00
nsPrintSettingsGTK.cpp Bug 1760836 - Support printing to an nsIOutputStream. r=jfkthame,jrmuizel,webdriver-reviewers,geckoview-reviewers,agi 2022-03-30 18:51:58 +00:00
nsPrintSettingsGTK.h Bug 1770211 p1 - Use nsIPrintSettings for nsDeviceContextSpecGTK::mPrintSettings. r=bobowen 2022-05-20 17:33:21 +00:00
nsPrintSettingsServiceGTK.cpp Bug 1766488 - Fix bustage in nsPrintSettingsServiceGTK.cpp (from bug 1763989). r=hiro 2022-04-26 23:06:29 +00:00
nsPrintSettingsServiceGTK.h
nsShmImage.cpp
nsShmImage.h
nsSound.cpp
nsSound.h
nsToolkit.cpp
nsUserIdleServiceGTK.cpp Bug 1661450 - 1/8 Guard X11 specific code with MOZ_X11 r=stransky 2022-04-20 09:32:07 +00:00
nsUserIdleServiceGTK.h Bug 1661450 - 1/8 Guard X11 specific code with MOZ_X11 r=stransky 2022-04-20 09:32:07 +00:00
nsWaylandDisplay.cpp Bug 1763591 - Clean up a bit nsWaylandDisplay. r=stransky 2022-04-07 11:10:31 +00:00
nsWaylandDisplay.h Bug 1763591 - Clean up a bit nsWaylandDisplay. r=stransky 2022-04-07 11:10:31 +00:00
nsWidgetFactory.cpp Bug 1661450 - 2/8 Add wayland required code getting opt-out by disabling MOZ_X11 r=stransky,rmader 2022-04-20 09:32:07 +00:00
nsWidgetFactory.h Bug 1514936, part 2 - Drop the outer arguments from static components. r=xpcom-reviewers,nika 2022-05-17 20:24:19 +00:00
nsWindow.cpp Bug 1789581 [Wayland] Call gdk_window_move() to reset GdkWindow internal position method r=emilio 2022-09-19 10:39:16 +00:00
nsWindow.h Bug 1789581 [Wayland] Call gdk_window_move() to reset GdkWindow internal position method r=emilio 2022-09-19 10:39:16 +00:00