Hyprland/src/managers/XWaylandManager.hpp

24 lines
799 B
C++
Raw Normal View History

2022-03-18 20:03:39 +01:00
#pragma once
#include "../defines.hpp"
#include "../Window.hpp"
class CHyprXWaylandManager {
public:
CHyprXWaylandManager();
~CHyprXWaylandManager();
wlr_xwayland* m_sWLRXWayland;
wlr_surface* getWindowSurface(CWindow*);
void activateSurface(wlr_surface*, bool);
void getGeometryForWindow(CWindow*, wlr_box*);
std::string getTitle(CWindow*);
void sendCloseWindow(CWindow*);
void setWindowSize(CWindow*, const Vector2D&);
void setWindowStyleTiled(CWindow*, uint32_t);
wlr_surface* surfaceAt(CWindow*, const Vector2D&, Vector2D&);
2022-03-20 13:37:07 +01:00
bool shouldBeFloated(CWindow*);
2022-03-18 20:03:39 +01:00
};
inline std::unique_ptr<CHyprXWaylandManager> g_pXWaylandManager;