xwayland: send zero scaling to xwayland if enabled

This commit is contained in:
vaxerski
2023-06-23 21:14:04 +02:00
parent 69fae18e63
commit 01f85a09a9
15 changed files with 109 additions and 11 deletions

View File

@@ -2,6 +2,7 @@
#include "../defines.hpp"
#include "../Window.hpp"
#include <optional>
class CHyprXWaylandManager {
public:
@@ -25,6 +26,10 @@ class CHyprXWaylandManager {
void moveXWaylandWindow(CWindow*, const Vector2D&);
void checkBorders(CWindow*);
Vector2D getMaxSizeForWindow(CWindow*);
void updateXWaylandScale();
private:
void setXWaylandScale(std::optional<double> scale);
};
inline std::unique_ptr<CHyprXWaylandManager> g_pXWaylandManager;