summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/fullscreen.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/fullscreen.cxx b/test/fullscreen.cxx
index e0fbe6dca..a37883d6d 100644
--- a/test/fullscreen.cxx
+++ b/test/fullscreen.cxx
@@ -144,6 +144,11 @@ void border_cb(Fl_Widget *o, void *p) {
Fl_Window *w = (Fl_Window *)p;
int d = ((Fl_Button *)o)->value();
w->border(d);
+#if defined(WIN32) || defined(__APPLE__)
+ int wx = w->x(), wy = w->y();
+ w->hide(); w->show();
+ w->position(wx, wy);
+#endif
}
int px,py,pw,ph;