Skip to content

Commit

Permalink
Complete the implementations of virtual Fl_X* Fl_Window_Driver::makeW…
Browse files Browse the repository at this point in the history
…indow() with the X11 platform.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Apr 19, 2016
1 parent 24487a7 commit f29fb8c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion FL/Fl_Window_Driver.H
Expand Up @@ -123,7 +123,7 @@ public:
virtual void make_current();
virtual void label(const char *name, const char *mininame);

virtual Fl_X *makeWindow() { /* FIXME: move Fl_X::make(Fl_Window*) here for OSX, MSWin, and X11 */ return 0; }
virtual Fl_X *makeWindow() { return 0; }
virtual void wait_for_expose();
virtual void destroy_double_buffer();
virtual void show();
Expand Down
2 changes: 1 addition & 1 deletion src/Fl_x.cxx
Expand Up @@ -2824,7 +2824,7 @@ void Fl_X11_Window_Driver::show() {
if (pWindow->type() != FL_DOUBLE_WINDOW && can_boxcheat(pWindow->box())) {
fl_background_pixel = int(fl_xpixel(pWindow->color()));
}
Fl_X::make_xid(pWindow);
makeWindow();
} else {
XMapRaised(fl_display, fl_xid(pWindow));
}
Expand Down
1 change: 1 addition & 0 deletions src/drivers/X11/Fl_X11_Window_Driver.H
Expand Up @@ -84,6 +84,7 @@ public:
virtual int decorated_h();

// --- window management
virtual Fl_X *makeWindow();
virtual void take_focus();
virtual void flush_double();
virtual void flush_overlay();
Expand Down
6 changes: 6 additions & 0 deletions src/drivers/X11/Fl_X11_Window_Driver.cxx
Expand Up @@ -666,6 +666,12 @@ int Fl_X11_Window_Driver::scroll(int src_x, int src_y, int src_w, int src_h, int
return 0;
}

Fl_X *Fl_X11_Window_Driver::makeWindow()
{
Fl_X::make_xid(pWindow, fl_visual, fl_colormap);
return Fl_X::i(pWindow);
}

//
// End of "$Id$".
//

0 comments on commit f29fb8c

Please sign in to comment.