win32: Stop using gdk_surface_new_temp

No need to roundtrip through the frontend to create
one of our own surfaces.
This commit is contained in:
Matthias Clasen 2020-10-07 21:07:40 -04:00
parent 27ef9d9e5e
commit 606ab611bd
2 changed files with 10 additions and 2 deletions

View File

@ -427,7 +427,12 @@ wintab_init_check (GdkDeviceManagerWin32 *device_manager)
ndevices, ncursors));
#endif
/* Create a dummy window to receive wintab events */
wintab_window = gdk_surface_new_temp (display, &(GdkRectangle) { -100, -100, 2, 2 });
wintab_window =
_gdk_win32_display_create_surface (display,
GDK_SURFACE_TEMP,
NULL,
-100, -100, 2, 2);
g_object_ref (wintab_window);
for (devix = 0; devix < ndevices; devix++)

View File

@ -1700,7 +1700,10 @@ create_drag_surface (GdkDisplay *display)
{
GdkSurface *surface;
surface = gdk_surface_new_temp (display, &(GdkRectangle) { 0, 0, 100, 100 });
surface = _gdk_win32_display_create_surface (display,
GDK_SURFACE_TEMP,
NULL,
0, 0, 100, 100);
return surface;
}