mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-26 00:11:04 +00:00
0004-Use-fresh-X11-timestamps-when-displaying-authenticat.patch includes gdk/gdkx.h unconditionally, which does not exist when gtk+3 is configured without the X11 backend, as is the case on wayland only distros: polkitgnomeauthenticator.c:29:10: fatal error: 'gdk/gdkx.h' file not found The patch already checks GDK_IS_X11_WINDOW() at runtime, but that is not enough: the macro is declared in gdkx.h too, so the include and the gdk_x11_get_server_time() call have to be compiled out as well. Guard both with GDK_WINDOWING_X11 and keep gtk_window_present() as the non-X11 path. Include gdk/gdk.h explicitly before the guard. GDK_WINDOWING_X11 comes from gdkconfig.h and no gdk or gtk header is pulled in earlier in that file, so without it the guard would always be false and X11 builds would silently lose the fresh timestamp instead of failing to build. Signed-off-by: Khem Raj <raj.khem@gmail.com>