summaryrefslogtreecommitdiff
path: root/src/Fl_Menu_Window.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-12-15 15:38:16 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-12-15 15:38:16 +0000
commit98b53249771c8c3989bff99ec06d215fb3165b93 (patch)
tree20656d53ee8fd55f84a91994b0cdacb14a6230ee /src/Fl_Menu_Window.cxx
parent136a36405440372a1e09c5ce239e8583c34d93f3 (diff)
More focus fixes from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@160 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Menu_Window.cxx')
-rw-r--r--src/Fl_Menu_Window.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Fl_Menu_Window.cxx b/src/Fl_Menu_Window.cxx
index 102993449..031d777d3 100644
--- a/src/Fl_Menu_Window.cxx
+++ b/src/Fl_Menu_Window.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Menu_Window.cxx,v 1.4 1998/10/21 14:20:12 mike Exp $"
+// "$Id: Fl_Menu_Window.cxx,v 1.5 1998/12/15 15:38:16 mike Exp $"
//
// Menu window code for the Fast Light Tool Kit (FLTK).
//
@@ -114,7 +114,6 @@ HWND fl_capture;
void Fl::grab(Fl_Window& w) {
grab_ = &w;
- fl_fix_focus();
#ifdef WIN32
SetActiveWindow(fl_capture = fl_xid(first_window()));
SetCapture(fl_capture);
@@ -138,9 +137,10 @@ void Fl::grab(Fl_Window& w) {
#endif
}
+extern fl_send_extra_move(); // in Fl.cxx
+
void Fl::release() {
grab_ = 0;
- fl_fix_focus();
#ifdef WIN32
fl_capture = 0;
ReleaseCapture();
@@ -151,9 +151,10 @@ void Fl::release() {
// an infinite loop, so we don't leave the X server locked up:
XFlush(fl_display);
#endif
+ fl_send_extra_move();
return;
}
//
-// End of "$Id: Fl_Menu_Window.cxx,v 1.4 1998/10/21 14:20:12 mike Exp $".
+// End of "$Id: Fl_Menu_Window.cxx,v 1.5 1998/12/15 15:38:16 mike Exp $".
//