Add close/delete window function aliases for upstream

This commit is contained in:
Jonathan G Rennison
2023-06-30 23:18:01 +01:00
parent 01c6705339
commit 87ee18b6b9
3 changed files with 15 additions and 0 deletions

View File

@@ -1172,6 +1172,11 @@ Window::~Window()
const_cast<volatile WindowClass &>(this->window_class) = WC_INVALID;
}
void Window::Close()
{
if (this->window_class != WC_INVALID) delete this;
}
/**
* Find a window by its class and window number
* @param cls Window class