comparison gtk3/dw.c @ 1122:e52c710e6d08

Minor change to allow dw_pointer_query_pos() to take NULL paramaters on GTK.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 26 Aug 2011 18:47:39 +0000
parents fb92778105b2
children aff4aeca858f
comparison
equal deleted inserted replaced
1121:fb92778105b2 1122:e52c710e6d08
3550 3550
3551 DW_MUTEX_LOCK; 3551 DW_MUTEX_LOCK;
3552 #ifdef GDK_WINDOWING_X11 3552 #ifdef GDK_WINDOWING_X11
3553 gdk_window_get_pointer (gdk_x11_window_lookup_for_display(gdk_display_get_default(), GDK_ROOT_WINDOW()), &gx, &gy, &state); 3553 gdk_window_get_pointer (gdk_x11_window_lookup_for_display(gdk_display_get_default(), GDK_ROOT_WINDOW()), &gx, &gy, &state);
3554 #endif 3554 #endif
3555 *x = gx; 3555 if(x)
3556 *y = gy; 3556 *x = gx;
3557 if(y)
3558 *y = gy;
3557 DW_MUTEX_UNLOCK; 3559 DW_MUTEX_UNLOCK;
3558 } 3560 }
3559 3561
3560 /* 3562 /*
3561 * Sets the X and Y coordinates of the mouse pointer. 3563 * Sets the X and Y coordinates of the mouse pointer.