Logo Search packages:      
Sourcecode: videolink version File versions  Download package

warp_pointer.cpp

// Copyright 2006 Ben Hutchings <ben@decadent.org.uk>.
// See the file "COPYING" for licence details.

#include "warp_pointer.hpp"

#include <gdk/gdkx.h>

// Move the pointer by (dx, dy) relative to its current position on
// the display which window appears on.  
// This is separated from videolink.cpp solely because it uses Xlib
// and Xlib.h defines many macros we don't want.
void warp_pointer(const Glib::RefPtr<Gdk::Window> & window, int dx, int dy)
{
    XWarpPointer(gdk_x11_drawable_get_xdisplay(window->gobj()), None, None,
             0, 0, 0, 0, dx, dy);
}

Generated by  Doxygen 1.6.0   Back to index