From 366f4bfbc9e6d71e7b5fccf6d666d5dd3cab600c Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 19 Apr 2016 06:34:40 +0000 Subject: Move the set_key_window() member function from class Fl_X to class Fl_Cocoa_Window_Driver. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx') diff --git a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx index 8c3f47d47..d4054affc 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx +++ b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx @@ -19,6 +19,7 @@ #include "../../config_lib.h" #include "Fl_Cocoa_Screen_Driver.H" +#include "Fl_Cocoa_Window_Driver.H" #include "../Quartz/Fl_Font.H" #include #include @@ -167,7 +168,7 @@ void Fl_Cocoa_Screen_Driver::grab(Fl_Window* win) if (win) { if (!Fl::grab_) { fl_capture = Fl_X::i(Fl::first_window())->xid; - Fl_X::i(Fl::first_window())->set_key_window(); + ((Fl_Cocoa_Window_Driver*)Fl::first_window()->driver())->set_key_window(); } Fl::grab_ = win; } else { -- cgit v1.2.3