File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 14
14
#include <gio/gio.h>
15
15
16
16
#include "login1.h"
17
+ #include "seat.h"
17
18
18
19
#define LOGIN1_SERVICE_NAME "org.freedesktop.login1"
19
20
#define LOGIN1_OBJECT_NAME "/org/freedesktop/login1"
@@ -248,6 +249,20 @@ signal_cb (GDBusConnection *connection,
248
249
g_signal_emit (service , service_signals [SEAT_REMOVED ], 0 , seat );
249
250
}
250
251
}
252
+ else if (strcmp (signal_name , "SecureAttentionKey" ) == 0 )
253
+ {
254
+ Login1SeatPrivate * s_priv ;
255
+ const gchar * id , * path ;
256
+ g_variant_get (parameters , "(&s&o)" , & id , & path );
257
+
258
+ g_autoptr (Login1Seat ) seat = login1_service_get_seat (service , id );
259
+ s_priv = login1_seat_get_instance_private (seat );
260
+ if (seat )
261
+ {
262
+ seat_switch_to_greeter (s_priv -> id );
263
+ }
264
+
265
+ }
251
266
}
252
267
253
268
gboolean
You can’t perform that action at this time.
0 commit comments