diff options
author | Brooks J Rady <b.j.rady@gmail.com> | 2021-05-29 23:12:11 +0100 |
---|---|---|
committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-05-29 23:12:11 +0100 |
commit | f2c5ee44f7f2c61f50b043bd8e55f915a3667fce (patch) | |
tree | 3e0ab2bb70869352c47085cc857b6e86becb840a /zellij-tile/src | |
parent | fe299325eb54e6642d27a417a3922a757b4390e4 (diff) |
Getting back to where we started... (Buggy Resizing)
Diffstat (limited to 'zellij-tile/src')
-rw-r--r-- | zellij-tile/src/shim.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/zellij-tile/src/shim.rs b/zellij-tile/src/shim.rs index 856dcc54d..ed033d4b0 100644 --- a/zellij-tile/src/shim.rs +++ b/zellij-tile/src/shim.rs @@ -17,8 +17,12 @@ pub fn unsubscribe(event_types: &[EventType]) { // Plugin Settings -pub fn set_max_height(max_height: i32) { - unsafe { host_set_max_height(max_height) }; +pub fn set_fixed_height(fixed_height: i32) { + unsafe { host_set_fixed_height(fixed_height) }; +} + +pub fn set_fixed_width(fixed_width: i32) { + unsafe { host_set_fixed_width(fixed_width) }; } pub fn set_selectable(selectable: bool) { @@ -64,7 +68,8 @@ pub fn object_to_stdout(object: &impl Serialize) { extern "C" { fn host_subscribe(); fn host_unsubscribe(); - fn host_set_max_height(max_height: i32); + fn host_set_fixed_height(fixed_height: i32); + fn host_set_fixed_width(fixed_width: i32); fn host_set_selectable(selectable: i32); fn host_set_invisible_borders(invisible_borders: i32); fn host_get_plugin_ids(); |