Maintain window position when turning its border on.

This commit is contained in:
ManoloFLTK 2019-04-07 08:57:06 +02:00
parent 63b86bd8f7
commit cc955d27a0

View File

@ -191,6 +191,7 @@ int Fl_Window_Driver::hide_common() {
void Fl_Window_Driver::use_border() {
if (shown()) {
pWindow->hide(); // hide and then show to reflect the new state of the window border
pWindow->force_position(1);
pWindow->show();
}
}