diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2000-01-26 06:27:15 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2000-01-26 06:27:15 +0000 |
| commit | 53919249e2b6a405f9e24d22ce7caa321f941337 (patch) | |
| tree | 728b235849128ecf659576e76d040fa64ee0bdc1 /src/Fl_x.cxx | |
| parent | be12eee3e5aab53510a5d8f0de7825586807b5ba (diff) | |
Sets the "input hint" which is needed for TWM and TWM-derived window managers.
The #if's in filename_list.cxx have been rearranged so the most common
case is the default.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@995 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
| -rw-r--r-- | src/Fl_x.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 966f6ca3e..f77568f47 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_x.cxx,v 1.24.2.10 2000/01/23 01:56:42 bill Exp $" +// "$Id: Fl_x.cxx,v 1.24.2.11 2000/01/26 06:27:14 bill Exp $" // // X specific code for the Fast Light Tool Kit (FLTK). // @@ -716,9 +716,10 @@ void Fl_X::make_xid(Fl_Window* w, XVisualInfo *visual, Colormap colormap) } XWMHints hints; - hints.flags = 0; + hints.input = True; + hints.flags = InputHint; if (fl_show_iconic) { - hints.flags = StateHint; + hints.flags |= StateHint; hints.initial_state = IconicState; fl_show_iconic = 0; } @@ -726,7 +727,7 @@ void Fl_X::make_xid(Fl_Window* w, XVisualInfo *visual, Colormap colormap) hints.icon_pixmap = (Pixmap)w->icon(); hints.flags |= IconPixmapHint; } - if (hints.flags) XSetWMHints(fl_display, x->xid, &hints); + XSetWMHints(fl_display, x->xid, &hints); } XMapWindow(fl_display, x->xid); @@ -877,5 +878,5 @@ void Fl_Window::make_current() { #endif // -// End of "$Id: Fl_x.cxx,v 1.24.2.10 2000/01/23 01:56:42 bill Exp $". +// End of "$Id: Fl_x.cxx,v 1.24.2.11 2000/01/26 06:27:14 bill Exp $". // |
