mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-02-17 22:11:30 +08:00
* feat: Inhibit system shortcuts on Linux Fixes #13013. Signed-off-by: Max von Forell <max@vonforell.de> * fix(linux): shortcuts inhibit Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: Max von Forell <max@vonforell.de> Signed-off-by: fufesou <linlong1266@gmail.com> Co-authored-by: Max von Forell <max@vonforell.de>
23 lines
880 B
C
23 lines
880 B
C
// Wayland keyboard shortcuts inhibit support
|
|
// This module provides functionality to inhibit system keyboard shortcuts
|
|
// on Wayland compositors, allowing remote desktop windows to capture all
|
|
// key events including Super, Alt+Tab, etc.
|
|
|
|
#ifndef WAYLAND_SHORTCUTS_INHIBIT_H_
|
|
#define WAYLAND_SHORTCUTS_INHIBIT_H_
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#if defined(GDK_WINDOWING_WAYLAND) && defined(HAS_KEYBOARD_SHORTCUTS_INHIBIT)
|
|
|
|
// Initialize shortcuts inhibit for a sub-window created by desktop_multi_window plugin.
|
|
// This sets up focus-based inhibitor management: inhibitor is created when
|
|
// the window gains focus and destroyed when it loses focus.
|
|
//
|
|
// @param view The FlView of the sub-window
|
|
void wayland_shortcuts_inhibit_init_for_subwindow(void* view);
|
|
|
|
#endif // defined(GDK_WINDOWING_WAYLAND) && defined(HAS_KEYBOARD_SHORTCUTS_INHIBIT)
|
|
|
|
#endif // WAYLAND_SHORTCUTS_INHIBIT_H_
|