summaryrefslogtreecommitdiff
path: root/src/desktop/Window.hpp
diff options
context:
space:
mode:
authorMaximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com>2025-02-16 00:20:42 +0000
committerGitHub <noreply@github.com>2025-02-16 01:20:42 +0100
commit897ee276dc0a8a6b11a8102b225a9e969faac0bf (patch)
tree4285cd2e7c1840ae7b80d6730af6250246c5d878 /src/desktop/Window.hpp
parent94a30889a78fa7c7f87fe8134c18357855824c35 (diff)
xwayland: configure on a configure request and cleanup geometry conversion (#9375)
* xwayland: configure the window on a configure request * xwayland: move coordinate conversion handling to their own functions * xwayland: rename configure to configureRequest
Diffstat (limited to 'src/desktop/Window.hpp')
-rw-r--r--src/desktop/Window.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/desktop/Window.hpp b/src/desktop/Window.hpp
index 171a15f4..bc32bab4 100644
--- a/src/desktop/Window.hpp
+++ b/src/desktop/Window.hpp
@@ -460,7 +460,7 @@ class CWindow {
void onFocusAnimUpdate();
void onUpdateState();
void onUpdateMeta();
- void onX11Configure(CBox box);
+ void onX11ConfigureRequest(CBox box);
void onResourceChangeX11();
std::string fetchTitle();
std::string fetchClass();
@@ -471,6 +471,11 @@ class CWindow {
bool isModal();
Vector2D requestedMinSize();
Vector2D requestedMaxSize();
+ Vector2D realToReportSize();
+ Vector2D realToReportPosition();
+ Vector2D xwaylandSizeToReal(Vector2D size);
+ Vector2D xwaylandPositionToReal(Vector2D size);
+ void updateX11SurfaceScale();
void sendWindowSize(bool force = false);
NContentType::eContentType getContentType();
void setContentType(NContentType::eContentType contentType);
@@ -497,7 +502,7 @@ class CWindow {
CHyprSignalListener commit;
CHyprSignalListener destroy;
CHyprSignalListener activate;
- CHyprSignalListener configure;
+ CHyprSignalListener configureRequest;
CHyprSignalListener setGeometry;
CHyprSignalListener updateState;
CHyprSignalListener updateMetadata;