x11: Stop using gdk_surface_new_temp

We can just as well use gdk_surface_new_popup.
This commit is contained in:
Matthias Clasen 2019-04-20 04:31:27 +00:00
parent 448312594c
commit 7c1509feaa
2 changed files with 7 additions and 2 deletions

View File

@ -1487,7 +1487,11 @@ gdk_x11_display_open (const gchar *display_name)
gdk_event_init (display);
display_x11->leader_gdk_surface = gdk_surface_new_temp (display);
{
GdkRectangle rect = { -100, -100, 1, 1 };
display_x11->leader_gdk_surface = gdk_surface_new_popup (display, &rect);
}
(_gdk_x11_surface_get_toplevel (display_x11->leader_gdk_surface))->is_leader = TRUE;
display_x11->leader_window = GDK_SURFACE_XID (display_x11->leader_gdk_surface);

View File

@ -4125,10 +4125,11 @@ create_moveresize_surface (MoveResizeData *mv_resize,
guint32 timestamp)
{
GdkGrabStatus status;
GdkRectangle rect = { -100, -100, 1, 1 };
g_assert (mv_resize->moveresize_emulation_surface == NULL);
mv_resize->moveresize_emulation_surface = gdk_surface_new_temp (mv_resize->display);
mv_resize->moveresize_emulation_surface = gdk_surface_new_popup (mv_resize->display, &rect);
gdk_surface_show (mv_resize->moveresize_emulation_surface);
status = gdk_seat_grab (gdk_device_get_seat (mv_resize->device),