output: Use new source of panel height information
This removed duplicate calculation of ideal height as well.
This commit is contained in:
		@ -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);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user