mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-26 17:33:48 -07:00
@@ -323,6 +323,14 @@ void CXDGToplevelResource::close() {
|
||||
resource->sendClose();
|
||||
}
|
||||
|
||||
Vector2D CXDGToplevelResource::layoutMinSize() {
|
||||
return owner ? current.minSize + owner->current.geometry.pos() : current.minSize;
|
||||
}
|
||||
|
||||
Vector2D CXDGToplevelResource::layoutMaxSize() {
|
||||
return owner ? current.maxSize + owner->current.geometry.pos() : current.maxSize;
|
||||
}
|
||||
|
||||
CXDGSurfaceResource::CXDGSurfaceResource(SP<CXdgSurface> resource_, SP<CXDGWMBase> owner_, SP<CWLSurfaceResource> surface_) :
|
||||
owner(owner_), surface(surface_), resource(resource_) {
|
||||
if (!good())
|
||||
|
@@ -99,6 +99,9 @@ class CXDGToplevelResource {
|
||||
|
||||
bool good();
|
||||
|
||||
Vector2D layoutMinSize();
|
||||
Vector2D layoutMaxSize();
|
||||
|
||||
// schedule a configure event
|
||||
uint32_t setSize(const Vector2D& size);
|
||||
uint32_t setMaximized(bool maximized);
|
||||
|
Reference in New Issue
Block a user