gecko-dev/widget/gtk
stransky 3e826f7bd6 Bug 1733620 [Linux] Don't call move/resize when we're waiting to move-to-rect callback, r=jhorak
Right now we resize/move popup windows even when move-to-rect callback is pending which leads to wrong popup
position / size if popup is moved/resized repeatedly.

In this patch we do:
- Remove multiple move/resize internal routines (NativeMove(), NativeResize()) and use only one method NativeMoveResize() for both.
- Always use NativeMoveResizeWaylandPopup() for popup window positioning and check if we're waiting to move-to-rect callback.
- When we're waiting to the callback save both new size and position (previously we saved size only) and use mBounds coordinates for it.
- Remove position/size params from NativeMoveResize() / NativeMoveResizeWaylandPopup() and use mBounds internally and mBounds is already
  set and it's correct popup size/position.
- Remove extra DispatchResized() call - it's already called from NativeMoveResize().

Differential Revision: https://phabricator.services.mozilla.com/D127662
2021-10-07 08:08:01 +00:00
..
compat Bug 1696845 - Use dlsym for gdk_*_display_get_type. r=stransky 2021-03-11 14:32:53 +00:00
compat-gtk3/gdk
crashtests Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham 2020-12-15 10:34:54 +00:00
mozgtk Bug 1721962 - Switch to pkg-config for X11 libraries. r=firefox-build-system-reviewers,jgilbert,andi 2021-07-30 11:39:39 +00:00
mozwayland Bug 1580595 - [Wayland] Add support for pointer lock via relative-pointer and pointer-constraints r=stransky,rmader,emilio 2021-04-22 14:56:43 +00:00
wayland Bug 1580595 - [Wayland] Add support for pointer lock via relative-pointer and pointer-constraints r=stransky,rmader,emilio 2021-04-22 14:56:43 +00:00
CompositorWidgetChild.cpp
CompositorWidgetChild.h
CompositorWidgetParent.cpp
CompositorWidgetParent.h
DMABufLibWrapper.cpp Bug 1729656 [Wayland] Don't use gfxPlatform to configure DMABuf, r=rmader 2021-09-28 20:16:17 +00:00
DMABufLibWrapper.h Bug 1729656 [Wayland] Don't use gfxPlatform to configure DMABuf, r=rmader 2021-09-28 20:16:17 +00:00
DMABufSurface.cpp Bug 1712588 Implement DMABufSurface::GetAsSourceSurface. r=sotaro,jgilbert 2021-07-15 16:19:51 +00:00
DMABufSurface.h Bug 1712588 Implement DMABufSurface::GetAsSourceSurface. r=sotaro,jgilbert 2021-07-15 16:19:51 +00:00
GRefPtr.h
GfxInfo.cpp Bug 1732002 - Disable EGL on Nvidia on X11 in beta and release, r=jrmuizel 2021-09-28 17:52:32 +00:00
GfxInfo.h Bug 1710400 - Blocklist HW-WR on Intel DDX driver, r=aosmond 2021-09-21 18:34:35 +00:00
GtkCompositorWidget.cpp Bug 1722450 [Linux] Hold reference to nsWindow in GtkCompositorWidget/WindowSurfaceWayland, r=emilio 2021-08-11 07:48:53 +00:00
GtkCompositorWidget.h Bug 1722450 [Linux] Hold reference to nsWindow in GtkCompositorWidget/WindowSurfaceWayland, r=emilio 2021-08-11 07:48:53 +00:00
IMContextWrapper.cpp Bug 1729402 - Changing inputmode might not set input-purpose on GTK. r=masayuki 2021-09-14 14:35:17 +00:00
IMContextWrapper.h Bug 1683027 - Make `IMContextWrapper` handle keyboard events asynchronously when active IM is Fcitx5 r=m_kato 2020-12-19 16:03:20 +00:00
InProcessGtkCompositorWidget.cpp
InProcessGtkCompositorWidget.h
MPRISInterfaceDescription.h
MPRISServiceHandler.cpp Bug 1712675 - part 2: Make any cpp file under `widget/gtk` stop redefining `LOG` macro r=rmader,stransky 2021-05-26 22:53:30 +00:00
MPRISServiceHandler.h
MediaKeysEventSourceFactory.cpp
MozContainer.cpp Bug 1728090 [Wayland] Print nsWindow object reference instead of MozContainer one in MozContainer logs, r=jhorak 2021-08-31 11:13:42 +00:00
MozContainer.h Bug 1728090 [Wayland] Print nsWindow object reference instead of MozContainer one in MozContainer logs, r=jhorak 2021-08-31 11:13:42 +00:00
MozContainerWayland.cpp Bug 1733055 [Wayland] Implement rendering to parent surface in MozContainer, r=rmader 2021-10-04 20:03:12 +00:00
MozContainerWayland.h Bug 1733055 [Wayland] Implement rendering to parent surface in MozContainer, r=rmader 2021-10-04 20:03:12 +00:00
NativeKeyBindings.cpp Bug 1685491 - part 5: Move the code remapping arrow keys in vertical content to `NativeKeyBindings` r=smaug,jfkthame 2021-02-02 03:29:31 +00:00
NativeKeyBindings.h Bug 1685491 - part 5: Move the code remapping arrow keys in vertical content to `NativeKeyBindings` r=smaug,jfkthame 2021-02-02 03:29:31 +00:00
PCompositorWidget.ipdl
PlatformWidgetTypes.ipdlh
ScreenHelperGTK.cpp Bug 1732682 [Wayland] Get screen sizes from workarea on KDE/Sway r=rmader 2021-10-04 12:13:38 +00:00
ScreenHelperGTK.h Bug 1732682 [Wayland] Get screen sizes from workarea on KDE/Sway r=rmader 2021-10-04 12:13:38 +00:00
TaskbarProgress.cpp
TaskbarProgress.h
WakeLockListener.cpp Bug 1709606 - Move GfxInfoX11 into gtk and remove X11 from the name, r=stransky 2021-05-07 12:31:27 +00:00
WakeLockListener.h
WaylandBuffer.cpp Bug 1720375 - Restructure surface pool into a buffer pool,r=stransky,gfx-reviewers,lsalzman 2021-08-04 12:43:21 +00:00
WaylandBuffer.h Bug 1720375 - Restructure surface pool into a buffer pool,r=stransky,gfx-reviewers,lsalzman 2021-08-04 12:43:21 +00:00
WaylandVsyncSource.cpp Bug 1728891 - Some cleanups for WaylandVsyncSource, r=stransky 2021-09-08 00:04:09 +00:00
WaylandVsyncSource.h Bug 1728891 - Some cleanups for WaylandVsyncSource, r=stransky 2021-09-08 00:04:09 +00:00
WidgetStyleCache.cpp Bug 1716462 - Minor WidgetStyleCache cleanup. r=stransky 2021-06-16 17:02:08 +00:00
WidgetStyleCache.h
WidgetTraceEvent.cpp
WidgetUtilsGtk.cpp Bug 1706022 [Linux] Use GdkIsWaylandDisplay()/GdkIsX11Display() instead of gfxPlatformGtk::GetPlatform() variants, r=jhorak 2021-04-20 12:29:01 +00:00
WidgetUtilsGtk.h Bug 1701319 - Add GTK platform support for pasting files. r=stransky 2021-04-08 07:37:06 +00:00
WindowSurface.h Bug 1716796 [Wayland] Poll mozcontainer remap state, r=rmader 2021-06-19 09:33:19 +00:00
WindowSurfaceProvider.cpp Bug 1729424 [Wayland] Remove WindowSurfaceWayland backend r=rmader 2021-09-07 12:48:23 +00:00
WindowSurfaceProvider.h Bug 1722450 [Linux] Hold reference to nsWindow in GtkCompositorWidget/WindowSurfaceWayland, r=emilio 2021-08-11 07:48:53 +00:00
WindowSurfaceWaylandMultiBuffer.cpp Bug 1733055 [Wayland] Implement rendering to parent surface in MozContainer, r=rmader 2021-10-04 20:03:12 +00:00
WindowSurfaceWaylandMultiBuffer.h Bug 1722450 [Linux] Hold reference to nsWindow in GtkCompositorWidget/WindowSurfaceWayland, r=emilio 2021-08-11 07:48:53 +00:00
WindowSurfaceX11.cpp
WindowSurfaceX11.h
WindowSurfaceX11Image.cpp Bug 1722454 - Remove --disable-skia. r=firefox-build-system-reviewers,gfx-reviewers,nical,andi 2021-07-29 23:29:43 +00:00
WindowSurfaceX11Image.h
WindowSurfaceX11SHM.cpp Bug 1709606 - Move WindowSurface* into the gtk backend, r=stransky 2021-05-07 12:31:26 +00:00
WindowSurfaceX11SHM.h Bug 1709606 - Move WindowSurface* into the gtk backend, r=stransky 2021-05-07 12:31:26 +00:00
components.conf Bug 1709606 - Move GfxInfoX11 into gtk and remove X11 from the name, r=stransky 2021-05-07 12:31:27 +00:00
gtk3drawing.cpp Bug 1716462 - Minor WidgetStyleCache cleanup. r=stransky 2021-06-16 17:02:08 +00:00
gtkdrawing.h Bug 1710643 - Remove support for unused gtk infobar widget and colors. r=stransky 2021-05-12 19:13:21 +00:00
maiRedundantObjectFactory.c
maiRedundantObjectFactory.h Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
moz.build Bug 1729424 [Wayland] Remove WindowSurfaceWayland backend r=rmader 2021-09-07 12:48:23 +00:00
nsAppShell.cpp Bug 1703073 [Wayland] Rework Wayland popup hierarchy management, r=jhorak 2021-05-10 06:50:53 +00:00
nsAppShell.h
nsApplicationChooser.cpp
nsApplicationChooser.h
nsBidiKeyboard.cpp
nsBidiKeyboard.h
nsClipboard.cpp Bug 1611407 [Linux/X11] Don't try to get text clipboard data of binary MIME types, r=jhorak 2021-09-09 09:46:09 +00:00
nsClipboard.h Bug 1611407 [Linux/X11] Don't try to get text clipboard data of binary MIME types, r=jhorak 2021-09-09 09:46:09 +00:00
nsClipboardWayland.cpp Bug 1726360 [Wayland] Sync clipboard update, r=jhorak 2021-08-31 13:08:37 +00:00
nsClipboardWayland.h Bug 1726360 [Wayland] Sync clipboard update, r=jhorak 2021-08-31 13:08:37 +00:00
nsClipboardWaylandAsync.cpp Bug 1726360 [Wayland] Async clipboard update, r=jhorak 2021-08-31 13:08:37 +00:00
nsClipboardWaylandAsync.h Bug 1727268 [Wayland] Unlock async clipboard even when nsRetrievalContextWaylandAsync::GetTargets() fails, r=jhorak 2021-08-24 09:38:46 +00:00
nsClipboardX11.cpp Bug 1611407 [Linux/X11] Don't try to get text clipboard data of binary MIME types, r=jhorak 2021-09-09 09:46:09 +00:00
nsClipboardX11.h Bug 1703763 [Wayland] Use fast track clipboard to get clipboard content when clipboard content is owned by Firefox, r=jhorak 2021-04-09 11:33:55 +00:00
nsColorPicker.cpp Bug 1519636 - Reformat recent changes to the Google coding style. r=emilio 2021-08-23 09:30:23 +00:00
nsColorPicker.h Bug 1673000 [Linux] Use Gtk color picker, r=jhorak 2021-07-20 13:33:04 +00:00
nsDeviceContextSpecG.cpp Bug 1519636 - Reformat recent changes to the Google coding style. r=necko-reviewers,emilio 2021-06-17 11:00:22 +00:00
nsDeviceContextSpecG.h
nsDragService.cpp Bug 1733465 part 2: Modernize nsViewManager::GetRootWidget() to use already_AddRefed return value, instead of requiring getter_AddRefs at callsite. r=tnikkel 2021-10-01 20:38:09 +00:00
nsDragService.h Bug 1730203 [Wayland] Reply to drag_motion from Gtk handler, r=emilio 2021-09-24 08:02:16 +00:00
nsFilePicker.cpp Bug 1724679 [Linux] Check env variables for '1' to enable them, r=jhorak 2021-08-11 07:28:57 +00:00
nsFilePicker.h
nsGTKToolkit.h
nsGtkCursors.h
nsGtkKeyUtils.cpp Bug 1706022 [Linux] Use GdkIsWaylandDisplay()/GdkIsX11Display() instead of gfxPlatformGtk::GetPlatform() variants, r=jhorak 2021-04-20 12:29:01 +00:00
nsGtkKeyUtils.h Bug 1691622 - part 4: Make `synthesizeNativeMouseClick*()` aware of modifiers r=smaug,geckoview-reviewers,m_kato 2021-02-24 01:27:07 +00:00
nsGtkUtils.h
nsImageToPixbuf.cpp Bug 1706299 - Remove nsIImageToPixBuf. r=stransky 2021-04-21 09:29:51 +00:00
nsImageToPixbuf.h Bug 1706299 - Remove nsIImageToPixBuf. r=stransky 2021-04-21 09:29:51 +00:00
nsLookAndFeel.cpp Bug 1734226 - Use a single pref to determine whether system colors follow the Firefox theme. r=desktop-theme-reviewers,dao 2021-10-06 15:29:59 +00:00
nsLookAndFeel.h Bug 1724405 - Make ui.caretBlinkCount a proper widget int, and make it respect GTK settings. r=stransky 2021-08-10 14:39:27 +00:00
nsNativeBasicThemeGTK.cpp Bug 1734009 - Pass color-related arguments down to the non-native theme in a more convenient way. r=dholbert 2021-10-05 09:40:00 +00:00
nsNativeBasicThemeGTK.h Bug 1734009 - Pass color-related arguments down to the non-native theme in a more convenient way. r=dholbert 2021-10-05 09:40:00 +00:00
nsNativeThemeGTK.cpp Bug 1733968 - Teach Linux to draw mismatched widgets using the non-native theme. r=mstange 2021-10-07 06:55:37 +00:00
nsNativeThemeGTK.h Bug 1733968 - Teach Linux to draw mismatched widgets using the non-native theme. r=mstange 2021-10-07 06:55:37 +00:00
nsPrintDialogGTK.cpp Bug 1713532 - removed else after return r=gregtatum 2021-06-10 14:08:16 +00:00
nsPrintDialogGTK.h
nsPrintSettingsGTK.cpp Bug 1692316 - Part 1: Update Platform Duplex Print Terminology r=dholbert 2021-02-17 23:57:26 +00:00
nsPrintSettingsGTK.h
nsPrintSettingsServiceGTK.cpp
nsPrintSettingsServiceGTK.h
nsShmImage.cpp Bug 1709606 - Move WindowSurface* into the gtk backend, r=stransky 2021-05-07 12:31:26 +00:00
nsShmImage.h Bug 1709606 - Move WindowSurface* into the gtk backend, r=stransky 2021-05-07 12:31:26 +00:00
nsSound.cpp
nsSound.h
nsToolkit.cpp
nsUserIdleServiceGTK.cpp Bug 1696845 - Use dlsym for gdk_*_display_get_type. r=stransky 2021-03-11 14:32:53 +00:00
nsUserIdleServiceGTK.h
nsWaylandDisplay.cpp Bug 1726923 - Add Wayland crash handler, r=stransky,emilio 2021-08-31 18:27:00 +00:00
nsWaylandDisplay.h Bug 1721023 [Wayland] Close display registry right after use, r=rmader 2021-07-20 18:29:49 +00:00
nsWidgetFactory.cpp
nsWidgetFactory.h
nsWindow.cpp Bug 1733620 [Linux] Don't call move/resize when we're waiting to move-to-rect callback, r=jhorak 2021-10-07 08:08:01 +00:00
nsWindow.h Bug 1733620 [Linux] Don't call move/resize when we're waiting to move-to-rect callback, r=jhorak 2021-10-07 08:08:01 +00:00