Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
mozc
ibus-qt5-hide_preedit_text-workaround.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ibus-qt5-hide_preedit_text-workaround.patch of Package mozc
--- mozc-2.16.2037.102/unix/ibus/preedit_handler.cc.org 2015-03-04 15:36:31.902548226 +0900 +++ mozc-2.16.2037.102/unix/ibus/preedit_handler.cc 2015-09-22 23:14:48.097972613 +0900 @@ -123,13 +123,12 @@ PreeditHandler::~PreeditHandler() { bool PreeditHandler::Update(IBusEngine *engine, const commands::Output &output) { - if (!output.has_preedit()) { - ibus_engine_hide_preedit_text(engine); - return true; - } + // Send an empty IBusText if has_preedit() is false + // because Qt5 does not support hide_preedit_text IBusText *text = ComposePreeditText(output.preedit()); ibus_engine_update_preedit_text_with_mode(engine, text, CursorPos(output), - TRUE, IBUS_ENGINE_PREEDIT_COMMIT); + output.has_preedit(), + IBUS_ENGINE_PREEDIT_COMMIT); // |text| is released by ibus_engine_update_preedit_text. return true; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor