From f9039b2ae21988783feae9b362818e7923e82d14 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 6 Oct 1998 18:21:25 +0000 Subject: Initial revision git-svn-id: file:///fltk/svn/fltk/trunk@2 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Window_iconize.cxx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/Fl_Window_iconize.cxx (limited to 'src/Fl_Window_iconize.cxx') diff --git a/src/Fl_Window_iconize.cxx b/src/Fl_Window_iconize.cxx new file mode 100644 index 000000000..a89080623 --- /dev/null +++ b/src/Fl_Window_iconize.cxx @@ -0,0 +1,19 @@ +// X-specific code that is not called by all programs, so it is put +// here in it's own source file to make programs smaller. + +#include + +extern char fl_show_iconic; // in Fl_x.C + +void Fl_Window::iconize() { + if (!shown()) { + fl_show_iconic = 1; + show(); + } else { +#ifdef WIN32 + ShowWindow(i->xid, SW_MINIMIZE); +#else + XIconifyWindow(fl_display, i->xid, fl_screen); +#endif + } +} -- cgit v1.2.3