diff --git a/4ed.cpp b/4ed.cpp index 6eae824a..6844277f 100644 --- a/4ed.cpp +++ b/4ed.cpp @@ -2636,7 +2636,7 @@ App_Step_Sig(app_step){ else{ mouse_position = clamp(0, my, models->layout.full_height); } - divider->pos = layout_compute_position(&models->layout, divider, ); + divider->pos = layout_compute_position(&models->layout, divider, mouse_position); } layout_fix_all_panels(&models->layout); diff --git a/4ed.h b/4ed.h index 719f02f6..c7c0ed1a 100644 --- a/4ed.h +++ b/4ed.h @@ -34,6 +34,7 @@ struct Key_Input_Data{ char modifiers[MDFR_INDEX_COUNT]; }; +static Key_Input_Data null_key_input_data = {0}; struct Key_Summary{ i32 count; diff --git a/linux_4ed.cpp b/linux_4ed.cpp index 99e0d2b7..53a03240 100644 --- a/linux_4ed.cpp +++ b/linux_4ed.cpp @@ -3464,7 +3464,7 @@ main(int argc, char **argv) flush_thread_group(BACKGROUND_THREADS); linuxvars.input.first_step = 0; - linuxvars.input.keys = key_input_data_zero(); + linuxvars.input.keys = null_key_input_data; linuxvars.input.mouse.press_l = 0; linuxvars.input.mouse.release_l = 0; linuxvars.input.mouse.press_r = 0;