2022-03-18 20:03:39 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../defines.hpp"
|
|
|
|
#include "../Window.hpp"
|
|
|
|
|
|
|
|
class CHyprXWaylandManager {
|
|
|
|
public:
|
|
|
|
CHyprXWaylandManager();
|
|
|
|
~CHyprXWaylandManager();
|
|
|
|
|
2022-04-20 15:58:02 +02:00
|
|
|
wlr_xwayland* m_sWLRXWayland = nullptr;
|
2022-03-18 20:03:39 +01:00
|
|
|
|
|
|
|
wlr_surface* getWindowSurface(CWindow*);
|
|
|
|
void activateSurface(wlr_surface*, bool);
|
2022-04-02 18:57:09 +02:00
|
|
|
void activateWindow(CWindow*, bool);
|
2022-03-18 20:03:39 +01:00
|
|
|
void getGeometryForWindow(CWindow*, wlr_box*);
|
|
|
|
std::string getTitle(CWindow*);
|
2022-03-24 18:22:01 +01:00
|
|
|
std::string getAppIDClass(CWindow*);
|
2022-03-18 20:03:39 +01:00
|
|
|
void sendCloseWindow(CWindow*);
|
|
|
|
void setWindowSize(CWindow*, const Vector2D&);
|
|
|
|
void setWindowStyleTiled(CWindow*, uint32_t);
|
2022-03-30 17:39:04 +02:00
|
|
|
void setWindowFullscreen(CWindow*, bool);
|
2022-03-18 20:03:39 +01:00
|
|
|
wlr_surface* surfaceAt(CWindow*, const Vector2D&, Vector2D&);
|
2022-03-20 13:37:07 +01:00
|
|
|
bool shouldBeFloated(CWindow*);
|
2022-03-20 19:14:17 +01:00
|
|
|
void moveXWaylandWindow(CWindow*, const Vector2D&);
|
2022-03-22 21:28:57 +01:00
|
|
|
void checkBorders(CWindow*);
|
2022-08-05 18:10:59 +02:00
|
|
|
Vector2D getMaxSizeForWindow(CWindow*);
|
2022-03-18 20:03:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
inline std::unique_ptr<CHyprXWaylandManager> g_pXWaylandManager;
|