Files
FWS-Kitty/glfw/linux_session_monitor.h
BlackAngelTV 3d174c45a4 chore: import official kitty sources from upstream
Bring the kovidgoyal/kitty codebase in as the base of FWS-Kitty, vendored at upstream commit 91fb38a without its git history.
2026-11-04 11:35:59 +01:00

19 lines
476 B
C
Vendored

/*
* Copyright (C) 2026 Kovid Goyal <kovid at kovidgoyal.net>
*
* Distributed under terms of the GPL3 license.
*/
#pragma once
#include "dbus_glfw.h"
#include "internal.h"
// The session states reported by the Inhibit desktop portal
#define GLFW_SESSION_STATE_RUNNING 1
#define GLFW_SESSION_STATE_QUERY_END 2
#define GLFW_SESSION_STATE_ENDING 3
typedef void (*GLFWDBussessionstatefun)(uint32_t);
bool glfw_dbus_monitor_session_state(GLFWDBussessionstatefun callback);