diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-01-08 17:08:39 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-01-08 17:08:39 +0100 |
| commit | 9a2b3ef798d0baf4228b69b941b7cdb25aca6ab6 (patch) | |
| tree | 9708441cfa92305ede6d110af197f013bc4a76f9 /src | |
| parent | b12ed6154814a345a9396d5f0a09d951ea628eb2 (diff) | |
Input Method support: have the auxiliary window follow when the focus window is moved.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index f76d45980..ff48df4f6 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -2321,6 +2321,11 @@ void Fl_X11_Window_Driver::resize(int X,int Y,int W,int H) { if (shown()) {pWindow->redraw();} } else { x(X); y(Y); + if (fl_xim_win && Fl::focus()) { + // Force the Input Method auxiliary window to move too. + Fl::focus()->handle(FL_FOCUS); + fl_set_spot(fl_font(), fl_size(), Fl::focus()->x(), Fl::focus()->y() + fl_size(), Fl::focus()->w(), Fl::focus()->h(), NULL); + } } if (resize_from_program && is_a_resize && !pWindow->resizable()) { |
