summaryrefslogtreecommitdiff
path: root/src/clients/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/client.rs')
-rw-r--r--src/clients/client.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/clients/client.rs b/src/clients/client.rs
index 84f787a..c9fa645 100644
--- a/src/clients/client.rs
+++ b/src/clients/client.rs
@@ -215,9 +215,10 @@ impl Client {
})
}
- pub fn update_window_type(&mut self, conn: &Connection<'_>) {
- // TODO: Fullscreen from net_wm_state
- if hints::is_dialog(conn, self.window) {
+ pub fn update_window_type(&mut self, conn: &Connection<'_>, mon_geom: &MonitorGeometry) {
+ if hints::is_fullscreen(conn, self.window) {
+ self.set_fullscreen(conn, mon_geom);
+ } else if hints::is_dialog(conn, self.window) {
self.set_floating(conn);
}
}