summaryrefslogtreecommitdiff
path: root/src/Fl_x.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-18 14:31:07 +0000
committerManolo Gouy <Manolo>2016-04-18 14:31:07 +0000
commit0629b40afd8fc49ef2d9db898d190e3a1a508d8d (patch)
treed339e4c02fa7a222446dc441398966a7ab07c05c /src/Fl_x.cxx
parent516d0e5f9ca1850ad76c81c10c5e3c415f21c5cd (diff)
Move set_cursor() member functions from class Fl_X to classes Fl_Window_Driver and derived.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
-rw-r--r--src/Fl_x.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index faa8a068b..020a41ad8 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -2666,7 +2666,7 @@ void Fl_X11_Window_Driver::set_icons() {
////////////////////////////////////////////////////////////////
-int Fl_X::set_cursor(Fl_Cursor c) {
+int Fl_X11_Window_Driver::set_cursor(Fl_Cursor c) {
/* The cursors are cached, because creating one takes 0.5ms including
opening, reading, and closing theme files. They are kept until program
@@ -2720,12 +2720,12 @@ int Fl_X::set_cursor(Fl_Cursor c) {
#undef cache_cursor
- XDefineCursor(fl_display, xid, xc);
+ XDefineCursor(fl_display, fl_xid(pWindow), xc);
return 1;
}
-int Fl_X::set_cursor(const Fl_RGB_Image *image, int hotx, int hoty) {
+int Fl_X11_Window_Driver::set_cursor(const Fl_RGB_Image *image, int hotx, int hoty) {
#if ! HAVE_XCURSOR
return 0;
#else
@@ -2769,7 +2769,7 @@ int Fl_X::set_cursor(const Fl_RGB_Image *image, int hotx, int hoty) {
cursor->yhot = hoty;
xc = XcursorImageLoadCursor(fl_display, cursor);
- XDefineCursor(fl_display, xid, xc);
+ XDefineCursor(fl_display, fl_xid(pWindow), xc);
XFreeCursor(fl_display, xc);
XcursorImageDestroy(cursor);