summaryrefslogtreecommitdiff
path: root/src/Fl_x.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-23 18:00:37 +0000
committerManolo Gouy <Manolo>2016-03-23 18:00:37 +0000
commitfdaad858ba78ac232df8b5a7d6f1ab3a64680a6c (patch)
tree47cf7aaf6cd8622f8ec4253cc209b6fce948ca34 /src/Fl_x.cxx
parente3ee1e7b81c9b1a8806b80cd69c66eeccc679bf9 (diff)
Rewrite Fl_Window::iconize() under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11411 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
-rw-r--r--src/Fl_x.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 9e73011a9..d73a22dba 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -2313,7 +2313,6 @@ Fl_X* Fl_X::set_xid(Fl_Window* win, Window winxid) {
// normally. The global variables like fl_show_iconic are so that
// subclasses of *that* class may change the behavior...
-char fl_show_iconic; // hack for iconize()
int fl_background_pixel = -1; // hack to speed up bg box drawing
int fl_disable_transient_for; // secret method of removing TRANSIENT_FOR
@@ -2527,10 +2526,10 @@ void Fl_X::make_xid(Fl_Window* win, XVisualInfo *visual, Colormap colormap)
XWMHints *hints = XAllocWMHints();
hints->input = True;
hints->flags = InputHint;
- if (fl_show_iconic) {
+ if (Fl_Window::show_iconic_) {
hints->flags |= StateHint;
hints->initial_state = IconicState;
- fl_show_iconic = 0;
+ Fl_Window::show_iconic_ = 0;
showit = 0;
}
if (((Fl_X11_Window_Driver*)win->pWindowDriver)->icon_->legacy_icon) {