summaryrefslogtreecommitdiff
path: root/src/Fl_grab.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-12-18 22:31:01 +0000
committerManolo Gouy <Manolo>2010-12-18 22:31:01 +0000
commitd01c9cdf5b000fa7565351bcf4602f2fbad08b83 (patch)
tree281b49dff07d0a67bb5d7474b74c77ab46dd7e4c /src/Fl_grab.cxx
parent403ee0ce23a0c62ffec254448a327bcc8158b34e (diff)
Mac OS: replaced several global functions by new member functions of Mac OS-specific Fl_X class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_grab.cxx')
-rw-r--r--src/Fl_grab.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_grab.cxx b/src/Fl_grab.cxx
index 3b820fef9..39421eb06 100644
--- a/src/Fl_grab.cxx
+++ b/src/Fl_grab.cxx
@@ -47,7 +47,6 @@ extern HWND fl_capture;
#endif
#ifdef __APPLE__
-extern void MACsetkeywindow(void *nsw);
extern void *fl_capture;
#endif
@@ -59,7 +58,7 @@ void Fl::grab(Fl_Window* win) {
SetCapture(fl_capture);
#elif defined(__APPLE__)
fl_capture = Fl_X::i(first_window())->xid;
- MACsetkeywindow(fl_capture);
+ Fl_X::i(first_window())->set_key_window();
#else
XGrabPointer(fl_display,
fl_xid(first_window()),