summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkdevice-virtual.c
Commit message (Collapse)AuthorAgeFilesLines
* win32: fix "unused variable" warningPaolo Borelli2016-03-051-7/+2
|
* GDK W32: Force correct mouse cursor for custom resize/moveРуслан Ижбулатов2016-03-031-48/+19
| | | | | | | | | | | | | | * Explicitly grab the device, setting appropriate cursor on it. * Fix gdk_device_virtual_set_window_cursor() to just set the cursor, without trying to check that mouse is over the given window. Also prevent it from immediately resetting cursor. * Alse take into account things that happen in other parts of GDK - don't look for replacement cursor, GDK already did that, and don't create a default arrow cursor instead of NULL, GDK-W32 already did that up the stack as well. Warn about inappropriate cursor == NULL argument instead. https://bugzilla.gnome.org/show_bug.cgi?id=762711
* win32: Stop using _gdk_display global in device codeBenjamin Otte2016-02-111-1/+1
| | | | Use gdk_device_get_display() instead.
* win32 virtual device: reorganize code to avoid prototypesIgnacio Casal Quinteiro2016-01-231-61/+21
|
* W32: avoid code duplication in gdkdevice-win32|virtualPaolo Borelli2015-12-221-94/+2
| | | | | The same get_position function is cut and pasted in the two classes.
* Clean up handling of _gdk_win32_grab_cursorMatthias Clasen2015-10-171-4/+2
| | | | | | | This is a variable holding a ref to an object, so it is a great case to use g_set_object and g_clear_object. # Please enter the commit message for your changes. Lines starting
* W32: Add missing reference taking in gdk_device_virtual_grab()Руслан Ижбулатов2015-10-171-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=756160
* GDK: Use GdkCursor objects to keep track of W32 cursors, not HCURSORРуслан Ижбулатов2015-05-201-38/+22
| | | | | | | | | | | | | | | | | | | In particular this means that cursors are disposed of by the way of g_object_unref(), not DestroyCursor (which is documented to not to be used on certain kinds of cursors, and we can't tell which is which). It should also alleviate any concerns about destroying cursors that are still in use by other windows, except for cases where we would somehow get our hands on a HCURSOR that someone else is using and we make a GdkCursor out of it and later unref and finalize it while it is still in use. It also removes the need to call CopyCursor(), which makes animated cursors into non-animated ones as a side-effect (supposed to be a bug, but try explaining that to MS). Now cursors should be animated (if the are set up as such in the OS). https://bugzilla.gnome.org/show_bug.cgi?id=697477
* GDK-W32: remove trailing whitespace everywhereРуслан Ижбулатов2015-04-291-3/+3
|
* Fix various warnings about unused thingsРуслан Ижбулатов2014-08-131-4/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=734735
* GDK-Win32: Ensure sources use UNIX line endingsChun-wei Fan2013-12-041-423/+423
| | | | | This makes things more consistent with the other sources and makes patches easier to apply cleanly.
* gdk/win32/gdkdevice-virtual.c: Various fixesChun-wei Fan2013-08-261-5/+5
| | | | | | | | | ...for the gdk_cursor_new_from_surface work (commit b2113b73) where the types of some parameters were changed, and also to silence a critical GDK_IS_DEVICE when a menu item is selected (courtesy of LE GARREC Vincent from bug 696756). https://bugzilla.gnome.org/show_bug.cgi?id=705980
* gdk/win32/gdkdevice-virtual.c: Don't Use Deprecated APIsChun-wei Fan2013-08-141-1/+1
| | | | | | ...this was split into two commits as this source file has different line endings (for some reason) from the other GDK-Win32 source files that were updated in the quest to refrain from using deprecated APIs
* gdk: Convert mouse position to doubles, add new gettersAlexander Larsson2013-07-031-12/+12
| | | | | | | | We've long had double precision mouse coordinates on wayland (e.g. when rotating a window) but with the new scaling we even have it on X (and, its also in Xinput2), so convert all the internal mouse/device position getters to use doubles and add new accessors for the public APIs that take doubles instead of ints.
* win32: Fix up wintab supportAlexander Larsson2012-04-031-0/+429
We now have a proper MASTER/SLAVE input device split, where the masters are virtual core input devices and we add fake hw slave devices for the system pointer and real slave devices for wintab devices. We also set the proper source_device on the events so you can tell which device sent it and properly decode the axis info.