forked from quickshell/quickshell
wayland/screencopy: add screencopy
This commit is contained in:
parent
918dd2392d
commit
cd429142a4
37 changed files with 3149 additions and 3 deletions
|
|
@ -0,0 +1,26 @@
|
|||
#pragma once
|
||||
|
||||
#include <qwayland-hyprland-toplevel-export-v1.h>
|
||||
#include <qwaylandclientextension.h>
|
||||
|
||||
#include "../../toplevel_management/handle.hpp"
|
||||
#include "../manager.hpp"
|
||||
|
||||
namespace qs::wayland::screencopy::hyprland {
|
||||
|
||||
class HyprlandScreencopyManager
|
||||
: public QWaylandClientExtensionTemplate<HyprlandScreencopyManager>
|
||||
, public QtWayland::hyprland_toplevel_export_manager_v1 {
|
||||
public:
|
||||
ScreencopyContext*
|
||||
captureToplevel(toplevel_management::impl::ToplevelHandle* handle, bool paintCursors);
|
||||
|
||||
static HyprlandScreencopyManager* instance();
|
||||
|
||||
private:
|
||||
explicit HyprlandScreencopyManager();
|
||||
|
||||
friend class HyprlandScreencopyContext;
|
||||
};
|
||||
|
||||
} // namespace qs::wayland::screencopy::hyprland
|
||||
Loading…
Add table
Add a link
Reference in a new issue