From 399501783ccd867559c954d91a00f7d5d7ec4cb8 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 19 Feb 2016 22:37:41 +0000 Subject: Add example code to Fl_Window_Driver. Some refactoring of a take_focus() function into driver structures (not too happy with it, because it has some kind of bug fix. However, shouldn't *all* Fl_Windows always have an FL_Window_Driver?) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Window.H | 2 ++ FL/Fl_Window_Driver.H | 2 ++ 2 files changed, 4 insertions(+) (limited to 'FL') diff --git a/FL/Fl_Window.H b/FL/Fl_Window.H index 9881d476c..d6ffa6853 100644 --- a/FL/Fl_Window.H +++ b/FL/Fl_Window.H @@ -636,6 +636,8 @@ public: */ int decorated_h(); + Fl_Window_Driver *driver() { return i; } + }; #endif diff --git a/FL/Fl_Window_Driver.H b/FL/Fl_Window_Driver.H index f42360724..dea792669 100644 --- a/FL/Fl_Window_Driver.H +++ b/FL/Fl_Window_Driver.H @@ -38,6 +38,8 @@ public: Fl_Window_Driver(Fl_Window *); virtual ~Fl_Window_Driver(); static Fl_Window_Driver *newWindowDriver(Fl_Window *); + + virtual void take_focus() { } }; -- cgit v1.2.3