if( !glx_win ) {
// NVIDIA library threading problem, XCloseDisplay SEGVs without this
sync_lock("BC_WindowBase::~BC_WindowBase:XDestroyWindow");
+ lock_window("BC_WindowBase::~BC_WindowBase:XDestroyWindow");
glXMakeContextCurrent(top_level->display, 0, 0, 0);
XDestroyWindow(top_level->display, win);
+ unlock_window();
sync_unlock();
}
else
}
}
+void BC_WindowBase::get_root_coordinates(int x, int y, int *abs_x, int *abs_y)
+{
+ translate_coordinates(win, top_level->rootwin, x, y, abs_x, abs_y);
+}
+
+void BC_WindowBase::get_win_coordinates(int abs_x, int abs_y, int *x, int *y)
+{
+ translate_coordinates(top_level->rootwin, win, abs_x, abs_y, x, y);
+}