Commit 34982b41 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Set x_root and y_root in button and motion events from extended input


2004-12-27  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
	Set x_root and y_root in button and motion events from
	extended input devices.  (#148715, Robert Ögren)
parent c0e9374d
2004-12-27 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
Set x_root and y_root in button and motion events from
extended input devices. (#148715, Robert Ögren)
* gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
typo. (#162339, Alessio Dessi)
......
2004-12-27 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
Set x_root and y_root in button and motion events from
extended input devices. (#148715, Robert Ögren)
* gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
typo. (#162339, Alessio Dessi)
......
2004-12-27 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
Set x_root and y_root in button and motion events from
extended input devices. (#148715, Robert Ögren)
* gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
typo. (#162339, Alessio Dessi)
......
2004-12-27 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkinput-x11.c (_gdk_input_common_other_event):
Set x_root and y_root in button and motion events from
extended input devices. (#148715, Robert Ögren)
* gtk/gtktreeview.c (gtk_tree_view_class_init): Fix a
typo. (#162339, Alessio Dessi)
......
......@@ -572,6 +572,8 @@ _gdk_input_common_other_event (GdkEvent *event,
gdk_input_translate_coordinates (gdkdev,input_window, xdbe->axis_data,
event->button.axes,
&event->button.x,&event->button.y);
event->button.x_root = event->button.x + input_window->root_x;
event->button.y_root = event->button.y + input_window->root_y;
event->button.state = gdk_input_translate_state(xdbe->state,xdbe->device_state);
event->button.button = xdbe->button;
......@@ -668,6 +670,8 @@ _gdk_input_common_other_event (GdkEvent *event,
gdk_input_translate_coordinates(gdkdev,input_window,xdme->axis_data,
event->motion.axes,
&event->motion.x,&event->motion.y);
event->motion.x_root = event->motion.x + input_window->root_x;
event->motion.y_root = event->motion.y + input_window->root_y;
event->motion.type = GDK_MOTION_NOTIFY;
event->motion.window = input_window->window;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment