summaryrefslogtreecommitdiff
path: root/src/clients/client.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-07-15 19:19:01 +0100
committertcmal <me@aria.rip>2024-07-15 19:25:02 +0100
commit1a87db1097d9d594c28963c66c627f3c66bcf6de (patch)
treea93a5a4da14569ede01a0e5cdfaa47d92e784a10 /src/clients/client.rs
parent5d2a23a5d618725b75ba77d7185601e5439801c5 (diff)
set fullscreen based on ewm hints
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);
}
}