forked from quickshell/quickshell
hyprland/focus_grab: add HyprlandFocusGrab
This commit is contained in:
parent
e7cfb5cf37
commit
87a884ca36
15 changed files with 607 additions and 0 deletions
22
src/wayland/hyprland/focus_grab/manager.hpp
Normal file
22
src/wayland/hyprland/focus_grab/manager.hpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <qwayland-hyprland-focus-grab-v1.h>
|
||||
#include <qwaylandclientextension.h>
|
||||
|
||||
namespace qs::hyprland::focus_grab {
|
||||
using HyprlandFocusGrabManager = QtWayland::hyprland_focus_grab_manager_v1;
|
||||
class FocusGrab;
|
||||
|
||||
class FocusGrabManager
|
||||
: public QWaylandClientExtensionTemplate<FocusGrabManager>
|
||||
, public HyprlandFocusGrabManager {
|
||||
public:
|
||||
explicit FocusGrabManager();
|
||||
|
||||
[[nodiscard]] bool available() const;
|
||||
[[nodiscard]] FocusGrab* createGrab();
|
||||
|
||||
static FocusGrabManager* instance();
|
||||
};
|
||||
|
||||
} // namespace qs::hyprland::focus_grab
|
||||
Loading…
Add table
Add a link
Reference in a new issue