Replace static void Fl_X::activate_window(Window) under X11 platform by void Fl_X11_Window_Driver::activate_window()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11651 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
9df9ffdc4c
commit
516d0e5f9c
1
FL/x.H
1
FL/x.H
@ -124,7 +124,6 @@ public:
|
||||
int set_cursor(const Fl_RGB_Image*, int, int);
|
||||
static void make_xid(Fl_Window*,XVisualInfo* =fl_visual, Colormap=fl_colormap);
|
||||
static Fl_X* set_xid(Fl_Window*, Window);
|
||||
static void activate_window(Window w);
|
||||
};
|
||||
|
||||
extern FL_EXPORT char fl_override_redirect; // hack into Fl_X::make_xid()
|
||||
|
||||
@ -2145,7 +2145,8 @@ char Fl_Xlib_Graphics_Driver::can_do_alpha_blending() {
|
||||
|
||||
extern Fl_Window *fl_xfocus;
|
||||
|
||||
void Fl_X::activate_window(Window w) {
|
||||
void Fl_X11_Window_Driver::activate_window() {
|
||||
Window w = fl_xid(pWindow);
|
||||
if (!Fl_X11_Screen_Driver::ewmh_supported())
|
||||
return;
|
||||
|
||||
|
||||
@ -69,6 +69,7 @@ private:
|
||||
void shape_alpha_(Fl_Image* img, int offset);
|
||||
void flush_double(int erase_overlay);
|
||||
void sendxjunk();
|
||||
void activate_window();
|
||||
#ifdef USE_XDBE
|
||||
char backbuffer_bad;
|
||||
void flush_double_dbe(int erase_overlay);
|
||||
|
||||
@ -190,7 +190,7 @@ void Fl_X11_Window_Driver::take_focus()
|
||||
if (!Fl_X11_Screen_Driver::ewmh_supported())
|
||||
pWindow->show(); // Old WMs, XMapRaised
|
||||
else if (i) // New WMs use the NETWM attribute:
|
||||
Fl_X::activate_window(i->xid);
|
||||
activate_window();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user