output: Use new source of panel height information

This removed duplicate calculation of ideal height as well.
This commit is contained in:
Dorota Czaplejewicz
2022-01-30 17:43:52 +00:00
parent a3f91701d0
commit 78ff02e255
2 changed files with 44 additions and 87 deletions

View File

@ -75,7 +75,7 @@ mod c {
extern "C" {
#[allow(improper_ctypes)]
fn init_wayland(wayland: *mut Wayland);
fn server_context_service_real_show_keyboard(service: *const UIManager, output: WlOutput, height: u32);
fn server_context_service_update_keyboard(service: *const UIManager, output: WlOutput, height: u32);
fn server_context_service_real_hide_keyboard(service: *const UIManager);
fn server_context_service_set_hint_purpose(service: *const UIManager, hint: u32, purpose: u32);
// This should probably only get called from the gtk main loop,
@ -150,7 +150,7 @@ mod c {
) {
match msg.panel_visibility {
Some(PanelCommand::Show { output, height }) => unsafe {
server_context_service_real_show_keyboard(ui_manager, output.0, height);
server_context_service_update_keyboard(ui_manager, output.0, height);
},
Some(PanelCommand::Hide) => unsafe {
server_context_service_real_hide_keyboard(ui_manager);