gdk_event_init (display);
- self->leader_gdk_surface =
- _gdk_x11_display_create_surface (display,
- GDK_SURFACE_DRAG,
- NULL,
- -100, -100, 1, 1);
+ self->leader_gdk_surface = gdk_x11_display_create_surface (display,
+ GDK_SURFACE_DRAG,
+ NULL);
(_gdk_x11_surface_get_toplevel (self->leader_gdk_surface))->is_leader = TRUE;
self->leader_window = GDK_SURFACE_XID (self->leader_gdk_surface);
return GDK_X11_DISPLAY (display)->screen;
}
-static GdkSurface *
-gdk_x11_display_create_surface (GdkDisplay *display,
- GdkSurfaceType surface_type,
- GdkSurface *parent)
-{
- return _gdk_x11_display_create_surface (display, surface_type, parent, 0, 0, 100, 100);
-}
-
static GdkKeymap *
gdk_x11_display_get_keymap (GdkDisplay *display)
{
{
GdkSurface *surface;
- surface = _gdk_x11_display_create_surface (display,
- GDK_SURFACE_DRAG,
- NULL,
- 0, 0, 100, 100);
+ surface = gdk_x11_display_create_surface (display,
+ GDK_SURFACE_DRAG,
+ NULL);
return surface;
}
display = gdk_surface_get_display (surface);
- ipc_surface = _gdk_x11_display_create_surface (display,
- GDK_SURFACE_DRAG,
- NULL,
- -99, -99, 1, 1);
+ ipc_surface = gdk_x11_display_create_surface (display,
+ GDK_SURFACE_DRAG,
+ NULL);
drag = (GdkDrag *) g_object_new (GDK_TYPE_X11_DRAG,
"surface", ipc_surface,
guint *width,
guint *height);
-GdkSurface * _gdk_x11_display_create_surface (GdkDisplay *display,
- GdkSurfaceType surface_type,
- GdkSurface *parent,
- int x,
- int y,
- int width,
- int height);
+GdkSurface * gdk_x11_display_create_surface (GdkDisplay *display,
+ GdkSurfaceType surface_type,
+ GdkSurface *parent);
GList * gdk_x11_display_get_toplevel_windows (GdkDisplay *display);
void _gdk_x11_precache_atoms (GdkDisplay *display,
GdkSurfaceTypeHint hint);
GdkSurface *
-_gdk_x11_display_create_surface (GdkDisplay *display,
- GdkSurfaceType surface_type,
- GdkSurface *parent,
- int x,
- int y,
- int width,
- int height)
+gdk_x11_display_create_surface (GdkDisplay *display,
+ GdkSurfaceType surface_type,
+ GdkSurface *parent)
{
GdkSurface *surface;
GdkFrameClock *frame_clock;
g_object_unref (frame_clock);
- surface->x = x;
- surface->y = y;
- surface->width = width;
- surface->height = height;
-
impl = GDK_X11_SURFACE (surface);
impl->surface_scale = x11_screen->surface_scale;
impl->override_redirect = TRUE;
}
- if (surface->width * impl->surface_scale > 32767 ||
- surface->height * impl->surface_scale > 32767)
- {
- g_warning ("Native Windows wider or taller than 32767 pixels are not supported");
-
- if (surface->width * impl->surface_scale > 32767)
- surface->width = 32767 / impl->surface_scale;
- if (surface->height * impl->surface_scale > 32767)
- surface->height = 32767 / impl->surface_scale;
- }
-
- impl->unscaled_width = surface->width * impl->surface_scale;
- impl->unscaled_height = surface->height * impl->surface_scale;
-
impl->xid = XCreateWindow (xdisplay, xparent,
- surface->x * impl->surface_scale,
- surface->y * impl->surface_scale,
- MAX (1, surface->width * impl->surface_scale),
- MAX (1, surface->height * impl->surface_scale),
+ 0, 0, 1, 1,
0,
gdk_x11_display_get_window_depth (display_x11),
InputOutput,
g_assert (mv_resize->moveresize_emulation_surface == NULL);
mv_resize->moveresize_emulation_surface =
- _gdk_x11_display_create_surface (mv_resize->display,
- GDK_SURFACE_DRAG,
- NULL,
- -100, -100, 1, 1);
+ gdk_x11_display_create_surface (mv_resize->display,
+ GDK_SURFACE_DRAG,
+ NULL);
gdk_surface_set_is_mapped (mv_resize->moveresize_emulation_surface, TRUE);
gdk_x11_surface_show (mv_resize->moveresize_emulation_surface, FALSE);