Commit d86a80ea authored by Ray Strode's avatar Ray Strode

local-display-factory: fix build with --disable-user-display-server

commit cf8d918f added a call to `lookup_by_session` which
was previously only defined when built GDM was built with

That causes the build to fail with `--disable-user-display-server`.

This commit fixes the build by moving `lookup_by_session` out
of conditionalized code.

Closes #416
parent e8f11816
Pipeline #27974 passed with stage
in 3 minutes and 41 seconds
...@@ -602,7 +602,6 @@ on_seat_removed (GDBusConnection *connection, ...@@ -602,7 +602,6 @@ on_seat_removed (GDBusConnection *connection,
delete_display (GDM_LOCAL_DISPLAY_FACTORY (user_data), seat); delete_display (GDM_LOCAL_DISPLAY_FACTORY (user_data), seat);
} }
static gboolean static gboolean
lookup_by_session_id (const char *id, lookup_by_session_id (const char *id,
GdmDisplay *display, GdmDisplay *display,
...@@ -615,6 +614,7 @@ lookup_by_session_id (const char *id, ...@@ -615,6 +614,7 @@ lookup_by_session_id (const char *id,
return g_strcmp0 (current, looking_for) == 0; return g_strcmp0 (current, looking_for) == 0;
} }
static void static void
maybe_stop_greeter_in_background (GdmDisplay *display) maybe_stop_greeter_in_background (GdmDisplay *display)
{ {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment