gtk/gdk/x11
Benjamin Otte 41cd0c6f13 gl: Fix initial EGL context creation on X11
After commit 447bc18c48 EGL on X11 broke.

But the handling of the GL context also was quite awkward because it was
unclear who was responsible for ensuring it got reset.

Change that by making gdk_gl_context_clear_current_if_surface() return
the context (with a reference because it might be the last reference) it
had unset, so that after changing EGL properties the code that caused
the clearing can re-make it current.

This moves the responsibility to the actual code that is dealing with
updating properties and frees the outer layers of code from that task.

And that means the X11 EGL code doesn't need to care and the code in the
Wayland backend that did care can be removed.

Related: !7662
Fixes: #6964 on X11
2024-08-29 01:31:47 +02:00
..
gdkapplaunchcontext-x11.c Revert "Conditional check for gdesktopappinfo header" 2023-11-14 23:45:17 -05:00
gdkasync.c
gdkasync.h
gdkcairocontext-x11.c drawcontext: Make begin_frame() set colorstate + depth 2024-07-11 14:57:20 +02:00
gdkcairocontext-x11.h
gdkclipboard-x11.c Plug GTask leaks 2024-08-05 14:38:23 +03:00
gdkclipboard-x11.h
gdkcursor-x11.c gdk: Deprecate public cursor theme setters 2024-04-20 07:50:10 -04:00
gdkdevice-xi2-private.h
gdkdevice-xi2.c Drop the nograbs debug value 2023-11-20 08:02:03 -05:00
gdkdevicemanager-x11.c
gdkdevicemanager-xi2.c xi2: Fix incorrect input source type in Input debug message 2024-04-08 10:15:00 -07:00
gdkdevicemanagerprivate-core.h
gdkdisplay-x11.c egl: Pass depth through the fbconfig selection code 2024-07-11 14:57:20 +02:00
gdkdisplay-x11.h glx: Implement support for EXT_swap_control 2023-05-24 21:44:43 +02:00
gdkdrag-x11.c Remove G_ENABLE_DEBUG around debug checks 2023-11-05 11:16:23 +01:00
gdkdrop-x11.c Plug GTask leaks 2024-08-05 14:38:23 +03:00
gdkeventsource.c
gdkeventsource.h
gdkeventtranslator.c
gdkeventtranslator.h
gdkglcontext-egl.c
gdkglcontext-glx.c gl: Fix initial EGL context creation on X11 2024-08-29 01:31:47 +02:00
gdkglcontext-x11.c x11: Add a forgotten empty_frame implementation 2024-01-06 09:36:25 -05:00
gdkglcontext-x11.h
gdkkeys-x11.c
gdkkeys-x11.h
gdkmain-x11.c
gdkmonitor-x11.c
gdkmonitor-x11.h
gdkprivate-x11.h gdk: Deprecate public cursor theme setters 2024-04-20 07:50:10 -04:00
gdkproperty-x11.c
gdkscreen-x11.c x11: Remove last_wmspec_check_time 2024-04-16 12:35:00 -07:00
gdkscreen-x11.h x11: Remove last_wmspec_check_time 2024-04-16 12:35:00 -07:00
gdkselection-x11.c
gdkselectioninputstream-x11.c Remove G_ENABLE_DEBUG around debug checks 2023-11-05 11:16:23 +01:00
gdkselectioninputstream-x11.h
gdkselectionoutputstream-x11.c Remove G_ENABLE_DEBUG around debug checks 2023-11-05 11:16:23 +01:00
gdkselectionoutputstream-x11.h
gdksettings.c switch: Follow "show-status-shapes" setting 2024-01-11 01:33:16 +01:00
gdksurface-x11.c gdk: Add color state arg to gdk_texture_download_surface() 2024-07-11 14:57:20 +02:00
gdksurface-x11.h
gdktextlistconverter-x11.c
gdktextlistconverter-x11.h
gdkvulkancontext-x11.c x11: Implement a missing method 2024-04-29 12:12:22 -04:00
gdkvulkancontext-x11.h
gdkx11applaunchcontext.h
gdkx11device-xi2.h
gdkx11device.h
gdkx11devicemanager-xi2.h
gdkx11devicemanager.h
gdkx11display.h gdk: Deprecate public cursor theme setters 2024-04-20 07:50:10 -04:00
gdkx11dnd.h
gdkx11glcontext.h
gdkx11monitor.h
gdkx11property.h
gdkx11screen.h
gdkx11selection.h
gdkx11surface.h
gdkx11utils.h
gdkx-autocleanups.h
gdkx.h
gdkxftdefaults.c
gdkxid.c
meson.build build: Add a missing dependency 2024-04-11 15:47:38 -04:00
MwmUtil.h
xsettings-client.c
xsettings-client.h