diff options
| author | Manolo Gouy <Manolo> | 2016-04-16 13:15:49 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-16 13:15:49 +0000 |
| commit | c4953935b07bd0aad7ebf1a4762c9335ff3f9a0d (patch) | |
| tree | 3095203c3468714c13b33cd18a164492e54bbb37 /src/Fl_x.cxx | |
| parent | b0ce80f56bc0ff464277910cf0340a3162864498 (diff) | |
Continue removing non window-related member-functions from class Fl_X.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11633 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
| -rw-r--r-- | src/Fl_x.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 9f45072df..ca1e1bb7f 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -2526,7 +2526,7 @@ void Fl_X::make_xid(Fl_Window* win, XVisualInfo *visual, Colormap colormap) XSetWMHints(fl_display, xp->xid, hints); XFree(hints); - xp->set_icons(); + win->pWindowDriver->set_icons(); } // set the window type for menu and tooltip windows to avoid animations (compiz) @@ -2707,22 +2707,22 @@ void Fl_Window_Driver::default_icons(const Fl_RGB_Image *icons[], int count) { &default_net_wm_icons, &default_net_wm_icons_size); } -void Fl_X::set_icons() { +void Fl_X11_Window_Driver::set_icons() { unsigned long *net_wm_icons; size_t net_wm_icons_size; - if (((Fl_X11_Window_Driver*)w->pWindowDriver)->icon_->count) { - icons_to_property((const Fl_RGB_Image **)((Fl_X11_Window_Driver*)w->pWindowDriver)->icon_->icons, ((Fl_X11_Window_Driver*)w->pWindowDriver)->icon_->count, + if (icon_->count) { + icons_to_property((const Fl_RGB_Image **)icon_->icons, icon_->count, &net_wm_icons, &net_wm_icons_size); } else { net_wm_icons = default_net_wm_icons; net_wm_icons_size = default_net_wm_icons_size; } - XChangeProperty (fl_display, xid, fl_NET_WM_ICON, XA_CARDINAL, 32, + XChangeProperty (fl_display, fl_xid(pWindow), fl_NET_WM_ICON, XA_CARDINAL, 32, PropModeReplace, (unsigned char*) net_wm_icons, net_wm_icons_size); - if (((Fl_X11_Window_Driver*)w->pWindowDriver)->icon_->count) { + if (icon_->count) { delete [] net_wm_icons; net_wm_icons = 0L; net_wm_icons_size = 0; |
