summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-10-30 01:26:05 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-10-30 01:26:05 +0000
commit4bed0a3665cfa558009b8ac9b995eac11278c7a7 (patch)
tree5d896d40ef1fa9cf15774db4be1e2135de068a67 /src/Fl.cxx
parent36656517e6646a0bd8c287040ec57438cc686890 (diff)
Tooltip tweeks.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2716 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl.cxx')
-rw-r--r--src/Fl.cxx46
1 files changed, 25 insertions, 21 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index f2742a473..bd665eb26 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl.cxx,v 1.24.2.41.2.56 2002/10/29 19:45:09 easysw Exp $"
+// "$Id: Fl.cxx,v 1.24.2.41.2.57 2002/10/30 01:26:03 easysw Exp $"
//
// Main event handling code for the Fast Light Tool Kit (FLTK).
//
@@ -811,27 +811,31 @@ Fl_Window::~Fl_Window() {
int Fl_Window::handle(int ev)
{
- if (parent()) switch (ev) {
- case FL_SHOW:
- if (!shown()) show();
- else XMapWindow(fl_display, fl_xid(this)); // extra map calls are harmless
- break;
- case FL_HIDE:
- if (shown()) {
- // Find what really turned invisible, if is was a parent window
- // we do nothing. We need to avoid unnecessary unmap calls
- // because they cause the display to blink when the parent is
- // remapped. However if this or any intermediate non-window
- // widget has really had hide() called directly on it, we must
- // unmap because when the parent window is remapped we don't
- // want to reappear.
- if (visible()) {
- Fl_Widget* p = parent(); for (;p->visible();p = p->parent()) {}
- if (p->type() >= FL_WINDOW) break; // don't do the unmap
+ if (parent()) {
+ switch (ev) {
+ case FL_SHOW:
+ if (!shown()) show();
+ else XMapWindow(fl_display, fl_xid(this)); // extra map calls are harmless
+ break;
+ case FL_HIDE:
+ if (shown()) {
+ // Find what really turned invisible, if is was a parent window
+ // we do nothing. We need to avoid unnecessary unmap calls
+ // because they cause the display to blink when the parent is
+ // remapped. However if this or any intermediate non-window
+ // widget has really had hide() called directly on it, we must
+ // unmap because when the parent window is remapped we don't
+ // want to reappear.
+ if (visible()) {
+ Fl_Widget* p = parent(); for (;p->visible();p = p->parent()) {}
+ if (p->type() >= FL_WINDOW) break; // don't do the unmap
+ }
+ XUnmapWindow(fl_display, fl_xid(this));
}
- XUnmapWindow(fl_display, fl_xid(this));
+ break;
}
- break;
+// } else if (ev == FL_FOCUS || ev == FL_UNFOCUS) {
+// Fl_Tooltip::exit(Fl_Tooltip::current());
}
return Fl_Group::handle(ev);
@@ -969,5 +973,5 @@ void Fl_Window::flush() {
}
//
-// End of "$Id: Fl.cxx,v 1.24.2.41.2.56 2002/10/29 19:45:09 easysw Exp $".
+// End of "$Id: Fl.cxx,v 1.24.2.41.2.57 2002/10/30 01:26:03 easysw Exp $".
//