summaryrefslogtreecommitdiff
path: root/src/Fl_x.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-15 15:36:10 +0000
committerManolo Gouy <Manolo>2016-04-15 15:36:10 +0000
commit2fcb4f419217eb2895ad0e52b15aab252eb827ef (patch)
tree20d7a4148e4454df0cfd9389afd6e57565291781 /src/Fl_x.cxx
parent15715cd89856140e70dfcdaf97b70d8f06d96e2b (diff)
Move platform-dependent implementations of fl_open/close_display() to the Fl_Screen_Driver class
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11619 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_x.cxx')
-rw-r--r--src/Fl_x.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index 04e82abbc..47b984480 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -669,7 +669,7 @@ void Fl_X11_Screen_Driver::disable_im() {
fl_xim_deactivate();
}
-void fl_open_display() {
+void Fl_X11_Screen_Driver::open_display() {
if (fl_display) return;
setlocale(LC_CTYPE, "");
@@ -782,14 +782,14 @@ void fl_open_display(Display* d) {
XSelectInput(d, RootWindow(d, fl_screen), PropertyChangeMask);
}
-void fl_close_display() {
+void Fl_X11_Screen_Driver::close_display() {
Fl::remove_fd(ConnectionNumber(fl_display));
XCloseDisplay(fl_display);
}
void Fl_X11_Screen_Driver::get_mouse(int &xx, int &yy) {
- fl_open_display();
+ open_display();
Window root = RootWindow(fl_display, fl_screen);
Window c; int mx,my,cx,cy; unsigned int mask;
XQueryPointer(fl_display,root,&root,&c,&mx,&my,&cx,&cy,&mask);