mutter/src/wayland
Hans de Goede a8984a81c2 xwayland: Generate a Xauth file and pass this to Xwayland when starting it
Before this commit, sudo x11-app, e.g. sudo gvim /etc/some-file, fails
when running a Wayland session. Where as doing this under a "GNOME on Xorg"
session works fine. For a user switching from the Xorg session to the
Wayland session, this is regression, which we want to avoid.

This commit fixes this by creating and passing an xauth file to Xwayland when
mutter starts it. Just like gdm or startx pass a xauth file to Xorg when they
start Xorg.

Fixes #643

https://gitlab.gnome.org/GNOME/mutter/issues/643
2019-06-20 10:16:21 +02:00
..
protocol wayland: Update gtk-shell protocol to v3 2019-01-26 18:07:03 +01:00
meta-cursor-sprite-wayland.c cursor-renderer/native: Fetch instead of pass wl_buffer when realizing 2018-06-15 19:09:53 +00:00
meta-cursor-sprite-wayland.h cursor-renderer/native: Fetch instead of pass wl_buffer when realizing 2018-06-15 19:09:53 +00:00
meta-pointer-confinement-wayland.c Add some gtk-doc comments. 2019-01-06 21:57:16 +01:00
meta-pointer-confinement-wayland.h Implement support for the wp_pointer_constraints protocol 2016-02-16 19:02:48 +08:00
meta-pointer-lock-wayland.c Add some gtk-doc comments. 2019-01-06 21:57:16 +01:00
meta-pointer-lock-wayland.h Implement support for the wp_pointer_constraints protocol 2016-02-16 19:02:48 +08:00
meta-selection-source-wayland-private.h Make MetaSelection, MetaSelectionSource and MetaMemorySelectionSource public 2019-05-02 16:31:45 +02:00
meta-selection-source-wayland.c wayland: Add wayland MetaSelectionSource implementation 2019-05-02 16:22:08 +02:00
meta-wayland-actor-surface.c wayland: Move check for present window out of the actor-surface class 2019-05-09 09:06:52 +00:00
meta-wayland-actor-surface.h wayland/xdg-shell: Queue frame callbacks on new actor after resetting 2018-08-27 11:43:53 +00:00
meta-wayland-buffer.c wayland/buffer: Try realizing EGLStream before EGLImage buffer 2019-03-14 14:39:52 -07:00
meta-wayland-buffer.h wayland: Move surface texture ownership to MetaWaylandSurface 2019-02-25 15:35:38 +00:00
meta-wayland-cursor-surface.c wayland/cursor-surface: Update sprite when attaching NULL 2019-06-07 16:06:47 +00:00
meta-wayland-cursor-surface.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-data-device-private.h wayland: Implement the (so far internal) primary selection protocol 2016-02-26 19:51:32 +01:00
meta-wayland-data-device.c wayland: Unset DnD selection on wl_data_offer destruction 2019-05-29 16:10:57 +00:00
meta-wayland-data-device.h Make MetaSelection, MetaSelectionSource and MetaMemorySelectionSource public 2019-05-02 16:31:45 +02:00
meta-wayland-dma-buf.c wayland: Move surface texture ownership to MetaWaylandSurface 2019-02-25 15:35:38 +00:00
meta-wayland-dma-buf.h wayland: Move surface texture ownership to MetaWaylandSurface 2019-02-25 15:35:38 +00:00
meta-wayland-dnd-surface.c wayland/dnd-surface: Propagate commit to parent class 2019-05-09 09:06:52 +00:00
meta-wayland-dnd-surface.h wayland: Move DND surface role into its own file 2019-01-22 18:32:28 +01:00
meta-wayland-egl-stream.c wayland/eglstream: Don't build skeleton when disabled 2018-11-06 17:17:36 +01:00
meta-wayland-egl-stream.h wayland: Create EGLStream-backed buffers through wl_eglstream_controller 2018-06-15 13:45:29 -07:00
meta-wayland-gtk-shell.c wayland: Honor startup sequence workspace on .request_focus 2019-05-29 16:21:15 +00:00
meta-wayland-gtk-shell.h wayland: Add MetaWaylandGtkShell object 2018-11-27 15:34:13 +01:00
meta-wayland-inhibit-shortcuts-dialog.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-inhibit-shortcuts-dialog.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-inhibit-shortcuts.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-inhibit-shortcuts.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-input-device.c wayland/input-device: Add next serial helper 2016-10-11 22:51:50 +08:00
meta-wayland-input-device.h wayland/input-device: Add next serial helper 2016-10-11 22:51:50 +08:00
meta-wayland-keyboard.c Fix warnings when building without verbose mode 2018-11-06 17:17:36 +01:00
meta-wayland-keyboard.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-legacy-xdg-shell.c wayland/xdg-shell: Correct window menu position in logical layout mode 2019-03-26 22:41:57 +01:00
meta-wayland-legacy-xdg-shell.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-outputs.c wayland/output: Set user data of xdg_output resource 2019-04-15 15:41:47 +02:00
meta-wayland-outputs.h output: Turn winsys_id into a uint64_t 2018-11-19 14:58:48 +00:00
meta-wayland-pointer-constraints.c wayland/pointer-constraints: Reject invalid lifetime 2019-05-22 15:06:14 +00:00
meta-wayland-pointer-constraints.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-pointer-gesture-pinch.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-pointer-gesture-pinch.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-pointer-gesture-swipe.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-pointer-gesture-swipe.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-pointer-gestures.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-pointer-gestures.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-pointer.c Use a consistent style for enum braces 2019-02-28 09:31:01 +01:00
meta-wayland-pointer.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-popup.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-popup.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-private.h xwayland: Generate a Xauth file and pass this to Xwayland when starting it 2019-06-20 10:16:21 +02:00
meta-wayland-region.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-region.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-seat.c wayland-seat: Use g_free to cleanup MetaWaylandSeat 2019-05-27 17:14:25 -05:00
meta-wayland-seat.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-shell-surface.c wayland: Move check for present window out of the actor-surface class 2019-05-09 09:06:52 +00:00
meta-wayland-shell-surface.h wayland/xdg-shell: Intersect set geometry with subsurface tree geometry 2018-08-20 14:37:10 +00:00
meta-wayland-subsurface.c wayland: Move check for present window out of the actor-surface class 2019-05-09 09:06:52 +00:00
meta-wayland-subsurface.h wayland: Push actor state instead of itself pulling 2018-02-23 18:57:47 +08:00
meta-wayland-surface.c clutter: Remove unused ClutterWaylandSurface 2019-06-18 09:54:00 +02:00
meta-wayland-surface.h wayland: Move surface texture ownership to MetaWaylandSurface 2019-02-25 15:35:38 +00:00
meta-wayland-tablet-cursor-surface.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-cursor-surface.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-manager.c Pass -D_GNU_SOURCE instead of defining it in source 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-manager.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-pad-group.c wayland/tablet: Fix warnings when native backend is disabled 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-pad-group.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-pad-ring.c Pass -D_GNU_SOURCE instead of defining it in source 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-pad-ring.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-pad-strip.c Pass -D_GNU_SOURCE instead of defining it in source 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-pad-strip.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-pad.c wayland/tablet: Fix warnings when native backend is disabled 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-pad.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-seat.c Pass -D_GNU_SOURCE instead of defining it in source 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-seat.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-tablet-tool.c wayland: Update tablet cursor outputs across cursor/proximity changes 2019-05-31 09:57:24 +00:00
meta-wayland-tablet-tool.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-tablet.c Pass -D_GNU_SOURCE instead of defining it in source 2018-11-06 17:17:36 +01:00
meta-wayland-tablet.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-text-input-legacy.c clutter: Make ClutterInputFocus API to set panel state explicit 2019-03-04 18:17:08 +00:00
meta-wayland-text-input-legacy.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-text-input.c wayland: Defer text_input.done on an idle 2019-03-25 14:55:12 +00:00
meta-wayland-text-input.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-touch.c wayland/touch: Remove undelivered touches earlier 2019-02-28 09:52:23 +00:00
meta-wayland-touch.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-types.h wayland: Add common object for device classes 2016-09-15 09:54:55 +08:00
meta-wayland-versions.h wayland/surface: Add support for wp_viewporter 2019-02-06 12:24:03 +00:00
meta-wayland-viewporter.c wayland/surface: Add support for wp_viewporter 2019-02-06 12:24:03 +00:00
meta-wayland-viewporter.h wayland/surface: Add support for wp_viewporter 2019-02-06 12:24:03 +00:00
meta-wayland-wl-shell.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-wayland-wl-shell.h wayland: Restructure surface role building blocks code 2018-02-23 18:57:40 +08:00
meta-wayland-xdg-foreign.c wayland/xdg-foreign: Fix child surface validation check 2018-05-07 19:16:40 +00:00
meta-wayland-xdg-foreign.h wayland: Add support for the xdg-foreign protocol 2016-08-22 21:03:41 +08:00
meta-wayland-xdg-shell.c wayland/xdg-shell: Correct window menu position in logical layout mode 2019-03-26 22:41:57 +01:00
meta-wayland-xdg-shell.h wayland: Add support for stable xdg-shell 2018-02-23 18:57:53 +08:00
meta-wayland.c xwayland: Generate a Xauth file and pass this to Xwayland when starting it 2019-06-20 10:16:21 +02:00
meta-wayland.h wayland: Don't export non-public API not used by tests 2019-06-19 15:19:05 +00:00
meta-window-wayland.c window/wayland: Don't always use constrained size when unfullscreening 2019-06-13 16:40:57 +00:00
meta-window-wayland.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-window-xwayland.c xwayland: add _XWAYLAND_MAY_GRAB_KEYBOARD property 2017-12-18 13:15:13 +01:00
meta-window-xwayland.h xwayland: Add MetaWindowXwayland 2017-12-18 13:15:09 +01:00
meta-xwayland-dnd-private.h wayland: Reduce MetaXWaylandSelection to just DnD 2019-05-02 16:31:45 +02:00
meta-xwayland-dnd.c wayland: Reduce MetaXWaylandSelection to just DnD 2019-05-02 16:31:45 +02:00
meta-xwayland-grab-keyboard.c settings: Slack off “xwayland-allow-grabs” setting 2019-06-03 09:34:31 +02:00
meta-xwayland-grab-keyboard.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-xwayland-private.h wayland: Reduce MetaXWaylandSelection to just DnD 2019-05-02 16:31:45 +02:00
meta-xwayland.c xwayland: Generate a Xauth file and pass this to Xwayland when starting it 2019-06-20 10:16:21 +02:00
meta-xwayland.h meta: Hide libmutter symbols by default and selectively export them 2019-01-23 14:18:13 +01:00