summaryrefslogtreecommitdiffstats
path: root/zellij-tile/src
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-05-29 23:12:11 +0100
committerBrooks J Rady <b.j.rady@gmail.com>2021-05-29 23:12:11 +0100
commitf2c5ee44f7f2c61f50b043bd8e55f915a3667fce (patch)
tree3e0ab2bb70869352c47085cc857b6e86becb840a /zellij-tile/src
parentfe299325eb54e6642d27a417a3922a757b4390e4 (diff)
Getting back to where we started... (Buggy Resizing)
Diffstat (limited to 'zellij-tile/src')
-rw-r--r--zellij-tile/src/shim.rs11
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();