mirror of
https://github.com/fltk/fltk.git
synced 2026-05-22 07:01:34 +08:00
Input Method support: have the auxiliary window follow when the focus window is moved.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user