On X11 and Wayland, add is_maximized support

Fixes #1845.

Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
This commit is contained in:
garasubo 2021-06-10 16:43:27 +09:00 committed by GitHub
parent 67cca71524
commit c916eb6137
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 2 deletions

View file

@ -380,8 +380,7 @@ impl Window {
#[inline]
pub fn is_maximized(&self) -> bool {
// TODO: Not implemented
false
x11_or_wayland!(match self; Window(w) => w.is_maximized())
}
#[inline]