f9039b2ae2
git-svn-id: file:///fltk/svn/fltk/trunk@2 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
20 lines
401 B
C++
20 lines
401 B
C++
// 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 <FL/x.H>
|
|
|
|
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
|
|
}
|
|
}
|