mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-06 08:45:58 +01:00
input-capture: code cleanup
This commit is contained in:
parent
6851f0cce0
commit
497a2ce308
7 changed files with 4 additions and 21 deletions
|
@ -63,7 +63,6 @@ pkg_check_modules(
|
||||||
libspa-0.2
|
libspa-0.2
|
||||||
libdrm
|
libdrm
|
||||||
libeis-1.0
|
libeis-1.0
|
||||||
dbus-1
|
|
||||||
gbm
|
gbm
|
||||||
hyprlang>=0.2.0
|
hyprlang>=0.2.0
|
||||||
hyprutils
|
hyprutils
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
#include "PortalManager.hpp"
|
#include "PortalManager.hpp"
|
||||||
#include "../helpers/Log.hpp"
|
#include "../helpers/Log.hpp"
|
||||||
#include "../helpers/MiscFunctions.hpp"
|
#include "../helpers/MiscFunctions.hpp"
|
||||||
#include "wayland.hpp"
|
|
||||||
|
|
||||||
#include <hyprutils/memory/SharedPtr.hpp>
|
|
||||||
#include <memory>
|
|
||||||
#include <pipewire/pipewire.h>
|
#include <pipewire/pipewire.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
@ -12,7 +9,6 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
SOutput::SOutput(SP<CCWlOutput> output_) : output(output_) {
|
SOutput::SOutput(SP<CCWlOutput> output_) : output(output_) {
|
||||||
output->setName([this](CCWlOutput* o, const char* name_) {
|
output->setName([this](CCWlOutput* o, const char* name_) {
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdint>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <sdbus-c++/sdbus-c++.h>
|
#include <sdbus-c++/sdbus-c++.h>
|
||||||
|
|
||||||
#include <hyprlang.hpp>
|
#include <hyprlang.hpp>
|
||||||
|
|
||||||
#include "wayland.hpp"
|
#include "wayland.hpp"
|
||||||
|
|
|
@ -2,14 +2,11 @@
|
||||||
|
|
||||||
#include "../core/PortalManager.hpp"
|
#include "../core/PortalManager.hpp"
|
||||||
#include "../helpers/Log.hpp"
|
#include "../helpers/Log.hpp"
|
||||||
|
#include "../shared/Session.hpp"
|
||||||
#include "hyprland-input-capture-v1.hpp"
|
#include "hyprland-input-capture-v1.hpp"
|
||||||
#include "shared/Session.hpp"
|
|
||||||
#include "src/shared/Eis.hpp"
|
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <sdbus-c++/IConnection.h>
|
|
||||||
#include <sdbus-c++/Types.h>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
|
|
|
@ -1,14 +1,9 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "hyprland-input-capture-v1.hpp"
|
#include "hyprland-input-capture-v1.hpp"
|
||||||
#include "shared/Eis.hpp"
|
#include "../shared/Eis.hpp"
|
||||||
#include <cstdint>
|
|
||||||
#include <sdbus-c++/Types.h>
|
|
||||||
#include <sdbus-c++/sdbus-c++.h>
|
|
||||||
#include <string>
|
|
||||||
#include <unordered_map>
|
|
||||||
#include <wayland-client-protocol.h>
|
|
||||||
#include "../includes.hpp"
|
#include "../includes.hpp"
|
||||||
#include "../shared/Session.hpp"
|
#include "../shared/Session.hpp"
|
||||||
|
#include <sdbus-c++/Types.h>
|
||||||
|
|
||||||
typedef int ClientStatus;
|
typedef int ClientStatus;
|
||||||
const ClientStatus CREATED = 0; //Is ready to be activated
|
const ClientStatus CREATED = 0; //Is ready to be activated
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
#include "Eis.hpp"
|
#include "Eis.hpp"
|
||||||
#include "core/PortalManager.hpp"
|
#include "../core/PortalManager.hpp"
|
||||||
#include "src/helpers/Log.hpp"
|
#include "src/helpers/Log.hpp"
|
||||||
#include <libeis.h>
|
#include <libeis.h>
|
||||||
#include <string>
|
|
||||||
#include <sys/poll.h>
|
#include <sys/poll.h>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
#include <libeis.h>
|
#include <libeis.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sys/socket.h>
|
|
||||||
|
|
||||||
struct EisClient {
|
struct EisClient {
|
||||||
struct eis_client* handle;
|
struct eis_client* handle;
|
||||||
|
|
Loading…
Reference in a new issue