Move the ewmh_supported check into fl_fix_focus to avoid a double show() on new WMs
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
523c657f2e
commit
d3a8566cab
@ -926,9 +926,10 @@ void Fl::focus(Fl_Widget *o) {
|
||||
#elif defined(USE_X11)
|
||||
if (fl_xfocus != win) {
|
||||
Fl_X *x = Fl_X::i(win);
|
||||
win->show(); // Old WMs, XMapRaised
|
||||
// New WMs use the NETWM attribute:
|
||||
if (x) Fl_X::activate_window(x->xid);
|
||||
if (!Fl_X::ewmh_supported())
|
||||
win->show(); // Old WMs, XMapRaised
|
||||
else if (x) // New WMs use the NETWM attribute:
|
||||
Fl_X::activate_window(x->xid);
|
||||
}
|
||||
#endif
|
||||
fl_xfocus = win;
|
||||
|
Loading…
Reference in New Issue
Block a user