summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-26 22:22:46 +0000
committerManolo Gouy <Manolo>2016-03-26 22:22:46 +0000
commit4d52fc463f9a45b8b784ddaeb1284c0cdccf55cd (patch)
tree68fd6691d1afbf407ebbf4cb609b9e042a269a5f
parent6d8ca8eeb60482f09e787a610a64647969ff1c17 (diff)
Replace the last bit of platform-dependent code in src/Fl.cxx by equivalent code.
The replacement code does the same thing because driver is never NULL and the ewmh_supported() test is made inside Fl_X11_Window_Driver::take_focus(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--src/Fl.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index a3f2d2be8..742129fc4 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -866,13 +866,7 @@ void Fl::focus(Fl_Widget *o) {
while (w1) { win=w1; w1=win->window(); }
if (win) {
if (fl_xfocus != win) {
- Fl_Window_Driver *drvr = win->driver();
-#ifdef USE_X11 // platform fix
- if (!Fl_X::ewmh_supported()) win->show(); // Old WMs, XMapRaised
- else if (drvr) drvr->take_focus();
-#else
- if (drvr) drvr->take_focus();
-#endif
+ win->driver()->take_focus();
fl_xfocus = win;
}
}