summaryrefslogtreecommitdiff
path: root/src/drivers/X11
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-02-19 22:43:40 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-02-19 22:43:40 +0000
commit093c0c7f738dd3dd9b73ea81e488e8aab0a6fa60 (patch)
treec997e9685d5a71481170a96033122ea3daea72ee /src/drivers/X11
parent399501783ccd867559c954d91a00f7d5d7ec4cb8 (diff)
Fixes for X11
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/X11')
-rw-r--r--src/drivers/X11/Fl_X11_Window_Driver.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/drivers/X11/Fl_X11_Window_Driver.cxx b/src/drivers/X11/Fl_X11_Window_Driver.cxx
index f6e748ca8..e145d99c6 100644
--- a/src/drivers/X11/Fl_X11_Window_Driver.cxx
+++ b/src/drivers/X11/Fl_X11_Window_Driver.cxx
@@ -36,10 +36,9 @@ Fl_X11_Window_Driver::Fl_X11_Window_Driver(Fl_Window *win)
void Fl_X11_Window_Driver::take_focus()
{
if (!Fl_X::ewmh_supported())
- win->show(); // Old WMs, XMapRaised
+ w->show(); // Old WMs, XMapRaised
else if (x) // New WMs use the NETWM attribute:
- Fl_X::activate_window(x->xid);
- }
+ Fl_X::activate_window(xid);
}