"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gdk/win32/gdkevents-win32.c" between
gtk+-3.24.26.tar.xz and gtk+-3.24.27.tar.xz

About: GTK+ 3 (the GIMP Toolkit; version 3) is a library for creating graphical user interfaces for the X Window System.

gdkevents-win32.c  (gtk+-3.24.26.tar.xz):gdkevents-win32.c  (gtk+-3.24.27.tar.xz)
skipping to change at line 1840 skipping to change at line 1840
*ret_valp = HTNOWHERE; *ret_valp = HTNOWHERE;
return TRUE; return TRUE;
} }
static void static void
generate_button_event (GdkEventType type, generate_button_event (GdkEventType type,
gint button, gint button,
GdkWindow *window, GdkWindow *window,
MSG *msg) MSG *msg)
{ {
GdkEvent *event = gdk_event_new (type); GdkEvent *event;
GdkDeviceManagerWin32 *device_manager; GdkDeviceManagerWin32 *device_manager;
GdkWindowImplWin32 *impl = GDK_WINDOW_IMPL_WIN32 (window->impl); GdkWindowImplWin32 *impl = GDK_WINDOW_IMPL_WIN32 (window->impl);
if (_gdk_input_ignore_core > 0) if (_gdk_input_ignore_core > 0)
return; return;
device_manager = GDK_DEVICE_MANAGER_WIN32 (gdk_display_get_device_manager (gdk _display_get_default ())); device_manager = GDK_DEVICE_MANAGER_WIN32 (gdk_display_get_device_manager (gdk _display_get_default ()));
event = gdk_event_new (type);
event->button.window = window; event->button.window = window;
event->button.time = _gdk_win32_get_next_tick (msg->time); event->button.time = _gdk_win32_get_next_tick (msg->time);
event->button.x = current_x = (gint16) GET_X_LPARAM (msg->lParam) / impl->wind ow_scale; event->button.x = current_x = (gint16) GET_X_LPARAM (msg->lParam) / impl->wind ow_scale;
event->button.y = current_y = (gint16) GET_Y_LPARAM (msg->lParam) / impl->wind ow_scale; event->button.y = current_y = (gint16) GET_Y_LPARAM (msg->lParam) / impl->wind ow_scale;
event->button.x_root = (msg->pt.x + _gdk_offset_x) / impl->window_scale; event->button.x_root = (msg->pt.x + _gdk_offset_x) / impl->window_scale;
event->button.y_root = (msg->pt.y + _gdk_offset_y) / impl->window_scale; event->button.y_root = (msg->pt.y + _gdk_offset_y) / impl->window_scale;
event->button.axes = NULL; event->button.axes = NULL;
event->button.state = build_pointer_event_state (msg); event->button.state = build_pointer_event_state (msg);
event->button.button = button; event->button.button = button;
gdk_event_set_device (event, device_manager->core_pointer); gdk_event_set_device (event, device_manager->core_pointer);
skipping to change at line 3741 skipping to change at line 3742
* instead * instead
*/ */
if (LOWORD(msg->wParam) != WA_INACTIVE) if (LOWORD(msg->wParam) != WA_INACTIVE)
_gdk_input_set_tablet_active (); _gdk_input_set_tablet_active ();
break; break;
case WM_ACTIVATEAPP: case WM_ACTIVATEAPP:
GDK_NOTE (EVENTS, g_print (" %s thread: %" G_GINT64_FORMAT, GDK_NOTE (EVENTS, g_print (" %s thread: %" G_GINT64_FORMAT,
msg->wParam ? "YES" : "NO", msg->wParam ? "YES" : "NO",
(gint64) msg->lParam)); (gint64) msg->lParam));
// Clear graphics tablet state
_gdk_input_ignore_core = 0;
break; break;
case WM_NCHITTEST: case WM_NCHITTEST:
/* TODO: pass all messages to DwmDefWindowProc() first! */ /* TODO: pass all messages to DwmDefWindowProc() first! */
return_val = handle_nchittest (msg->hwnd, window, return_val = handle_nchittest (msg->hwnd, window,
GET_X_LPARAM (msg->lParam), GET_X_LPARAM (msg->lParam),
GET_Y_LPARAM (msg->lParam), ret_valp); GET_Y_LPARAM (msg->lParam), ret_valp);
break; break;
/* Handle WINTAB events here, as we know that the device manager will /* Handle WINTAB events here, as we know that the device manager will
* use the fixed WT_DEFBASE as lcMsgBase, and we thus can use the * use the fixed WT_DEFBASE as lcMsgBase, and we thus can use the
* constants as case labels. * constants as case labels.
 End of changes. 4 change blocks. 
1 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)