mutter/src/wayland
Michel Dänzer 7649e2f3ab wayland/surface: Move buffer size check to meta_wayland_surface_commit
Multiple reasons:

* More consistent with the protocol spec language.
* Ensures the size is checked and the protocol error sent from a
  protocol processing context, instead of whatever context
  meta_wayland_surface_commit might get called from.
* The latter implies that surface->resource is guaranteed to be valid.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3211
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3463>
2023-12-18 21:56:59 +00:00
..
protocol wayland: Add X11 interop service client protocol 2023-02-13 15:34:24 +00:00
meta-cursor-sprite-wayland.c cursor-sprite: Register all cursor sprites with the cursor tracker 2021-12-22 16:22:08 +00:00
meta-cursor-sprite-wayland.h wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-pointer-confinement-wayland.c wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-pointer-confinement-wayland.h Update license access method 2023-08-30 08:48:23 +02:00
meta-pointer-lock-wayland.c Port to MtkRegion 2023-11-03 11:27:52 +00:00
meta-pointer-lock-wayland.h Update license access method 2023-08-30 08:48:23 +02:00
meta-selection-source-wayland-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-selection-source-wayland.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-activation.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-activation.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-actor-surface.c wayland/surface: Track committed and applied scale separately 2023-12-18 21:56:59 +00:00
meta-wayland-actor-surface.h wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-buffer.c wayland-buffer: Use MetaFormatInfo to find supported formats 2023-11-22 12:11:38 +00:00
meta-wayland-buffer.h Port to MtkRegion 2023-11-03 11:27:52 +00:00
meta-wayland-client-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-client.c wayland/client: Add make_desktop() method 2023-10-24 19:25:24 +00:00
meta-wayland-cursor-surface.c wayland/surface: Track committed and applied scale separately 2023-12-18 21:56:59 +00:00
meta-wayland-cursor-surface.h wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-data-device-primary.c wayland: Setup and use ownership chains 2022-12-17 15:13:48 +01:00
meta-wayland-data-device-primary.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-data-device.c Remove unused meta_wayland_data_device_is_dnd_surface 2023-08-12 19:53:46 +00:00
meta-wayland-data-device.h Remove unused meta_wayland_data_device_is_dnd_surface 2023-08-12 19:53:46 +00:00
meta-wayland-data-offer-primary.c wayland: Do not trigger focus sync when destroying data offers 2023-09-06 10:55:55 +00:00
meta-wayland-data-offer-primary.h cleanup: Make include macro usages consistent 2023-08-07 22:24:36 +00:00
meta-wayland-data-offer.c wayland: Do not trigger focus sync when destroying data offers 2023-09-06 10:55:55 +00:00
meta-wayland-data-offer.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-data-source-primary.c wayland: Add support for wayland-protocols primary selection protocol 2020-05-13 18:27:46 +02:00
meta-wayland-data-source-primary.h cleanup: Make include macro usages consistent 2023-08-07 22:24:36 +00:00
meta-wayland-data-source.c cleanup: Stop translating nick/blurb for pspecs 2023-07-19 11:33:59 +00:00
meta-wayland-data-source.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-dma-buf.c wayland/dma-buf: Prefer sync_file for dma-buf readiness source 2023-12-05 14:53:21 +00:00
meta-wayland-dma-buf.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-dnd-surface.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-dnd-surface.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-egl-stream.c cogl: Port Texture* away from CoglObject 2023-10-29 21:16:24 +00:00
meta-wayland-egl-stream.h cogl: Port Texture* away from CoglObject 2023-10-29 21:16:24 +00:00
meta-wayland-filter-manager.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-filter-manager.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-fractional-scale.c wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-fractional-scale.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-gtk-shell.c wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-gtk-shell.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-idle-inhibit.c tree-wide: Fix spelling of "inhibition" 2023-12-06 16:01:36 +00:00
meta-wayland-idle-inhibit.h wayland: Implement idle inhibit protocol 2023-08-26 20:19:22 +02:00
meta-wayland-inhibit-shortcuts-dialog.c cleanup: Use g_clear_signal_handler() where possible 2019-11-21 15:02:27 +00:00
meta-wayland-inhibit-shortcuts-dialog.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-inhibit-shortcuts.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-inhibit-shortcuts.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-input-device.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-input-device.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-keyboard.c wayland: Send keyboard modifiers after the enter event 2023-10-24 11:18:30 +03:00
meta-wayland-keyboard.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-legacy-xdg-foreign.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-legacy-xdg-foreign.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-outputs.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-outputs.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-pointer-constraints.c wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-pointer-constraints.h Port to MtkRegion 2023-11-03 11:27:52 +00:00
meta-wayland-pointer-gesture-hold.c wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-pointer-gesture-hold.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-pointer-gesture-pinch.c wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-pointer-gesture-pinch.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-pointer-gesture-swipe.c wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-pointer-gesture-swipe.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-pointer-gestures.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-pointer-gestures.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-pointer.c wayland/surface: Rename output/protocol_state to applied/committed_state 2023-11-15 10:55:21 +00:00
meta-wayland-pointer.h wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-popup.c wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-popup.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-presentation-time-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-presentation-time.c wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-private.h wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-region.c wayland: Rename peek_cairo_region to peek_region 2023-11-03 11:27:52 +00:00
meta-wayland-region.h wayland: Rename peek_cairo_region to peek_region 2023-11-03 11:27:52 +00:00
meta-wayland-seat.c wayland: Get device directly from clutter in get_grab_info() for touch case 2023-09-03 09:12:29 +00:00
meta-wayland-seat.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-shell-surface.c wayland/surface: Rename output/protocol_state to applied/committed_state 2023-11-15 10:55:21 +00:00
meta-wayland-shell-surface.h mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-single-pixel-buffer.c cogl: Port Texture* away from CoglObject 2023-10-29 21:16:24 +00:00
meta-wayland-single-pixel-buffer.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-subsurface.c wayland/surface: Rename output/protocol_state to applied/committed_state 2023-11-15 10:55:21 +00:00
meta-wayland-subsurface.h wayland/subsurface: Drop unapplied subsurface state on unmap 2023-11-08 09:47:57 +00:00
meta-wayland-surface-private.h wayland/surface: Track committed and applied scale separately 2023-12-18 21:56:59 +00:00
meta-wayland-surface.c wayland/surface: Move buffer size check to meta_wayland_surface_commit 2023-12-18 21:56:59 +00:00
meta-wayland-tablet-cursor-surface.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-cursor-surface.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-manager.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-manager.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-tablet-pad-group.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-pad-group.h Remove unused meta_wayland_tablet_pad_group_lookup_resource 2023-08-12 19:53:46 +00:00
meta-wayland-tablet-pad-ring.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-pad-ring.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-tablet-pad-strip.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-pad-strip.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-tablet-pad.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-pad.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-tablet-seat.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet-seat.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-tablet-tool.c wayland/surface: Rename output/protocol_state to applied/committed_state 2023-11-15 10:55:21 +00:00
meta-wayland-tablet-tool.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-tablet.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-tablet.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-text-input.c mutter: Replace cairo_rectangle_int_t with MtkRectangle 2023-08-30 16:46:13 +02:00
meta-wayland-text-input.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-touch.c wayland/surface: Rename output/protocol_state to applied/committed_state 2023-11-15 10:55:21 +00:00
meta-wayland-touch.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-wayland-transaction.c wayland/surface: Rename output/protocol_state to applied/committed_state 2023-11-15 10:55:21 +00:00
meta-wayland-transaction.h wayland/subsurface: Drop unapplied subsurface state on unmap 2023-11-08 09:47:57 +00:00
meta-wayland-types.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-versions.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-viewporter.c wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-viewporter.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-window-configuration.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-window-configuration.h mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-wayland-x11-interop.c wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-x11-interop.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-xdg-foreign-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-xdg-foreign.c Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-xdg-foreign.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland-xdg-shell.c wayland/surface: Make MetaWaylandSurface public 2023-11-04 01:12:11 +00:00
meta-wayland-xdg-shell.h Update license access method 2023-08-30 08:48:23 +02:00
meta-wayland.c wayland: Add conditional Xwayland EI portal support 2023-10-09 07:36:52 +00:00
meta-wayland.h Update license access method 2023-08-30 08:48:23 +02:00
meta-window-wayland.c core: Drop focus_frame argument from meta_display_set_input_focus() 2023-12-18 17:55:27 +00:00
meta-window-wayland.h mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-window-xwayland.c wayland/xwayland: Include x11-display-private 2023-12-15 14:14:33 +00:00
meta-window-xwayland.h cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00
meta-xwayland-dnd-private.h Update license access method 2023-08-30 08:48:23 +02:00
meta-xwayland-dnd.c wayland: Change MetaWaylandDragDest::motion vmethod signature 2023-08-08 03:58:42 +02:00
meta-xwayland-grab-keyboard.c Update license access method 2023-08-30 08:48:23 +02:00
meta-xwayland-grab-keyboard.h Update license access method 2023-08-30 08:48:23 +02:00
meta-xwayland-private.h xwayland: Add EI portal support to the Xwayland manager 2023-10-09 07:36:52 +00:00
meta-xwayland-surface.c mutter: Completely replace MetaRectangle with MtkRectangle 2023-08-30 16:46:14 +02:00
meta-xwayland-surface.h Update license access method 2023-08-30 08:48:23 +02:00
meta-xwayland.c xwayland: Enable optional XDG EI portal support 2023-10-09 07:36:52 +00:00
meta-xwayland.h Update license access method 2023-08-30 08:48:23 +02:00