added update_window_type function to clients which updates floating for dialog
style windows
This commit is contained in:
parent
364d621b72
commit
30867df46c
|
@ -606,6 +606,20 @@ impl ClientState {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn update_window_type<K>(&mut self, key: &K, window_type: WindowType)
|
||||||
|
where
|
||||||
|
K: ClientKey,
|
||||||
|
{
|
||||||
|
if let Some(client) = self.get_mut(key).into_option() {
|
||||||
|
client.window_type = window_type;
|
||||||
|
|
||||||
|
match window_type {
|
||||||
|
WindowType::Normal => self.set_floating(key),
|
||||||
|
_ => self.set_tiled(key),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fn remove_from_virtual_screens<K>(&mut self, key: &K)
|
fn remove_from_virtual_screens<K>(&mut self, key: &K)
|
||||||
where
|
where
|
||||||
K: ClientKey,
|
K: ClientKey,
|
||||||
|
|
Loading…
Reference in a new issue