mutter/src
Carlos Garnacho 2be5662ee9 compositor: Wrap XDamageCreate call with error trap
I hit this rare error running the "x11" test from the suite locally:

(mutter:194027): Gdk-ERROR **: 18:21:52.525: The program 'mutter' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
  (Details: serial 663 error_code 9 request_code 143 (DAMAGE) minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

The only call from the Damage extension in use by Mutter that could
return BadDrawable is XDamageCreate(), and it's likely to be this
call. Wrap this X11 in an error trap, in order to catch possible
failures.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2793>
2023-01-19 13:57:35 +00:00
..
backends gles3: Ensure missing_extensions is always populated 2023-01-18 10:14:39 +00:00
compositor compositor: Wrap XDamageCreate call with error trap 2023-01-19 13:57:35 +00:00
core core: Delete _MUTTER_NEEDS_FRAME property when destroying frame 2023-01-18 15:35:58 +01:00
frames frames: Avoid default NULL frame title 2023-01-18 14:17:00 +01:00
meta core: Replace MetaVirtualModifier 2022-12-22 15:13:54 +01:00
tests tests/clutter/event-delivery: Flush input thread inside wait_stage_updated() 2023-01-19 13:36:25 +00:00
wayland xwayland: Add support for byte-swapped clients 2023-01-17 11:14:19 +01:00
x11 x11: Push error trap reading X11 selection 2023-01-12 14:00:52 +01:00
libmutter.pc.in
meson.build build: Make GTK dependency specific to X11 2022-12-22 15:13:54 +01:00
meta-private-enum-types.c.in build: Add missing include 2022-08-10 20:28:40 +02:00
meta-private-enum-types.h.in screen-cast: Add screen cast flag to streams 2020-07-30 09:51:16 +02:00