Delete Window's private data in destructor
if(options.fullscreen)
display.restore_mode();
+
+ delete priv;
}
void Window::set_title(const string &title)
#endif
}
+void Window::warp_pointer(int x, int y)
+{
+#ifndef WIN32
+ XWarpPointer(display.get_private().display, None, priv->window, 0, 0, 0, 0, x, y);
+#endif
+}
+
void Window::show()
{
#ifdef WIN32
void set_title(const std::string &);
void reconfigure(const WindowOptions &);
void show_cursor(bool);
+ void warp_pointer(int, int);
Display &get_display() const { return display; }
const WindowOptions &get_options() const { return options; }