xdg: check for floating conditions before sending tiled size hint

ref #4871
This commit is contained in:
Vaxry
2024-02-28 23:14:50 +00:00
parent 097f561e41
commit 1e7eb3a5a5
4 changed files with 30 additions and 13 deletions

View File

@@ -23,7 +23,7 @@ class CHyprXWaylandManager {
void setWindowStyleTiled(CWindow*, uint32_t);
void setWindowFullscreen(CWindow*, bool);
wlr_surface* surfaceAt(CWindow*, const Vector2D&, Vector2D&);
bool shouldBeFloated(CWindow*);
bool shouldBeFloated(CWindow*, bool pending = false);
void moveXWaylandWindow(CWindow*, const Vector2D&);
void checkBorders(CWindow*);
Vector2D getMaxSizeForWindow(CWindow*);