mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-02 15:35:58 +01:00
31 lines
766 B
C
31 lines
766 B
C
|
#pragma once
|
||
|
|
||
|
#include <stdbool.h>
|
||
|
|
||
|
#include "protocols/hyprland-global-shortcuts-v1-client-protocol.h"
|
||
|
|
||
|
struct xdpw_state;
|
||
|
struct xdpw_session;
|
||
|
|
||
|
struct globalShortcut {
|
||
|
char* name;
|
||
|
char* description;
|
||
|
struct wl_list link;
|
||
|
struct hyprland_global_shortcut_v1* hlShortcut;
|
||
|
bool bound;
|
||
|
};
|
||
|
|
||
|
struct globalShortcutsClient {
|
||
|
struct xdpw_session* session;
|
||
|
struct wl_list shortcuts; // struct globalShortcut*
|
||
|
struct wl_list link;
|
||
|
char* parent_window;
|
||
|
bool sentShortcuts;
|
||
|
};
|
||
|
|
||
|
struct globalShortcutsInstance {
|
||
|
struct hyprland_global_shortcuts_manager_v1* manager;
|
||
|
struct wl_list shortcutClients; // struct globalShortcutsClient*
|
||
|
};
|
||
|
|
||
|
void initShortcutsInstance(struct xdpw_state* state, struct globalShortcutsInstance* instance);
|