We use this value only for drag surfaces, so call it that.
case GDK_SURFACE_POPUP:
type = GDK_TYPE_BROADWAY_POPUP;
break;
- case GDK_SURFACE_TEMP:
+ case GDK_SURFACE_DRAG:
type = GDK_TYPE_BROADWAY_DRAG_SURFACE;
break;
default:
mv_resize->moveresize_emulation_surface =
_gdk_broadway_display_create_surface (mv_resize->display,
- GDK_SURFACE_TEMP,
+ GDK_SURFACE_DRAG,
NULL,
-100, -100, 1, 1);
typedef enum
{
GDK_SURFACE_TOPLEVEL,
- GDK_SURFACE_TEMP,
- GDK_SURFACE_POPUP
+ GDK_SURFACE_POPUP,
+ GDK_SURFACE_DRAG
} GdkSurfaceType;
struct _GdkSurface
gdk_macos_device_query_state (device, surface, NULL, &px, &py, NULL);
_gdk_macos_surface_get_root_coords (GDK_MACOS_SURFACE (surface), &sx, &sy);
drag_surface = _gdk_macos_surface_new (GDK_MACOS_DISPLAY (surface->display),
- GDK_SURFACE_TEMP,
+ GDK_SURFACE_DRAG,
surface,
sx, sy, 1, 1);
drag = g_object_new (GDK_TYPE_MACOS_DRAG,
ret = _gdk_macos_popup_surface_new (display, parent, frame_clock, x, y, width, height);
break;
- case GDK_SURFACE_TEMP:
+ case GDK_SURFACE_DRAG:
ret = _gdk_macos_drag_surface_new (display, frame_clock, x, y, width, height);
break;
"frame-clock", frame_clock,
NULL);
break;
- case GDK_SURFACE_TEMP:
+ case GDK_SURFACE_DRAG:
surface = g_object_new (GDK_TYPE_WAYLAND_DRAG_SURFACE,
"display", display,
"frame-clock", frame_clock,
GdkSurface *surface;
surface = _gdk_wayland_display_create_surface (display,
- GDK_SURFACE_TEMP,
+ GDK_SURFACE_DRAG,
NULL,
0, 0, 100, 100);
/* Create a dummy window to receive wintab events */
wintab_window =
_gdk_win32_display_create_surface (display,
- GDK_SURFACE_TEMP,
+ GDK_SURFACE_DRAG,
NULL,
-100, -100, 2, 2);
GdkSurface *surface;
surface = _gdk_win32_display_create_surface (display,
- GDK_SURFACE_TEMP,
+ GDK_SURFACE_DRAG,
NULL,
0, 0, 100, 100);
klass = klassTOPLEVEL;
break;
- case GDK_SURFACE_TEMP:
+ case GDK_SURFACE_DRAG:
if (klassTEMP == 0)
{
wcl.lpszClassName = L"gdkSurfaceTemp";
GDK_NOTE (MISC,
g_print ("_gdk_surface_new: %s\n", (surface_type == GDK_SURFACE_TOPLEVEL ? "TOPLEVEL" :
- (surface_type == GDK_SURFACE_TEMP ? "TEMP" :
- (surface_type == GDK_SURFACE_TEMP ? "POPUP" : "???")))));
+ (surface_type == GDK_SURFACE_DRAG? "TEMP" :
+ (surface_type == GDK_SURFACE_DRAG ? "POPUP" : "???")))));
display_win32 = GDK_WIN32_DISPLAY (display);
"frame-clock", frame_clock,
NULL);
break;
- case GDK_SURFACE_TEMP:
+ case GDK_SURFACE_DRAG:
impl = g_object_new (GDK_TYPE_WIN32_DRAG_SURFACE,
"display", display,
"frame-clock", frame_clock,
dwStyle |= WS_OVERLAPPEDWINDOW;
break;
- case GDK_SURFACE_TEMP:
+ case GDK_SURFACE_DRAG:
dwExStyle |= WS_EX_TOOLWINDOW | WS_EX_TOPMOST;
/* fall through */
case GDK_SURFACE_POPUP:
gdk_surface_set_egl_native_window (surface, (void *) impl->handle);
- if (surface_type != GDK_SURFACE_TEMP)
+ if (surface_type != GDK_SURFACE_DRAG)
{
if (display_win32->tablet_input_api == GDK_WIN32_TABLET_INPUT_API_WINPOINTER)
gdk_winpointer_initialize_surface (surface);
self->leader_gdk_surface =
_gdk_x11_display_create_surface (display,
- GDK_SURFACE_TEMP,
+ GDK_SURFACE_DRAG,
NULL,
-100, -100, 1, 1);
GdkSurface *surface;
surface = _gdk_x11_display_create_surface (display,
- GDK_SURFACE_TEMP,
+ GDK_SURFACE_DRAG,
NULL,
0, 0, 100, 100);
display = gdk_surface_get_display (surface);
ipc_surface = _gdk_x11_display_create_surface (display,
- GDK_SURFACE_TEMP,
+ GDK_SURFACE_DRAG,
NULL,
-99, -99, 1, 1);
"frame-clock", frame_clock,
NULL);
break;
- case GDK_SURFACE_TEMP:
+ case GDK_SURFACE_DRAG:
surface = g_object_new (GDK_TYPE_X11_DRAG_SURFACE,
"display", display,
"frame-clock", frame_clock,
xattributes.colormap = gdk_x11_display_get_window_colormap (display_x11);
xattributes_mask |= CWColormap;
- if (surface_type == GDK_SURFACE_TEMP ||
+ if (surface_type == GDK_SURFACE_DRAG ||
surface_type == GDK_SURFACE_POPUP)
{
xattributes.save_under = True;
mv_resize->moveresize_emulation_surface =
_gdk_x11_display_create_surface (mv_resize->display,
- GDK_SURFACE_TEMP,
+ GDK_SURFACE_DRAG,
NULL,
-100, -100, 1, 1);