[gtk/present-toplevel-2: 14/33] x11: Stop using gdk_surface_show
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 14/33] x11: Stop using gdk_surface_show
- Date: Thu, 12 Mar 2020 04:43:30 +0000 (UTC)
commit f6ca40e1573c25208ad0a6abdfd1ad1628e6e110
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 9 10:20:13 2020 -0700
x11: Stop using gdk_surface_show
gdk/x11/gdkdrag-x11.c | 4 ++--
gdk/x11/gdkprivate-x11.h | 2 ++
gdk/x11/gdksurface-x11.c | 6 +++---
3 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/gdk/x11/gdkdrag-x11.c b/gdk/x11/gdkdrag-x11.c
index 9f2327b813..b336cecc59 100644
--- a/gdk/x11/gdkdrag-x11.c
+++ b/gdk/x11/gdkdrag-x11.c
@@ -1780,7 +1780,7 @@ gdk_drag_anim_timeout (gpointer data)
t = ease_out_cubic (f);
- gdk_surface_show (drag->drag_surface);
+ gdk_x11_surface_show (drag->drag_surface, FALSE);
gdk_x11_surface_move (drag->drag_surface,
(drag->last_x - drag->hot_x) +
(drag->start_x - drag->last_x) * t,
@@ -2028,7 +2028,7 @@ _gdk_x11_surface_drag_begin (GdkSurface *surface,
x11_drag->ipc_surface = ipc_surface;
if (gdk_x11_surface_get_group (surface))
gdk_x11_surface_set_group (x11_drag->ipc_surface, surface);
- gdk_surface_show (x11_drag->ipc_surface);
+ gdk_x11_surface_show (x11_drag->ipc_surface, FALSE);
x11_drag->drag_surface = create_drag_surface (display);
diff --git a/gdk/x11/gdkprivate-x11.h b/gdk/x11/gdkprivate-x11.h
index b97913de6d..71f5d2e75e 100644
--- a/gdk/x11/gdkprivate-x11.h
+++ b/gdk/x11/gdkprivate-x11.h
@@ -230,6 +230,8 @@ void gdk_x11_surface_get_root_coords (GdkSurface *surface,
gint *root_x,
gint *root_y);
+void gdk_x11_surface_show (GdkSurface *surface,
+ gboolean already_mapped);
void gdk_x11_surface_raise (GdkSurface *surface);
void gdk_x11_surface_set_opacity (GdkSurface *surface,
double opacity);
diff --git a/gdk/x11/gdksurface-x11.c b/gdk/x11/gdksurface-x11.c
index ba9bccc13e..022a8ef663 100644
--- a/gdk/x11/gdksurface-x11.c
+++ b/gdk/x11/gdksurface-x11.c
@@ -1238,7 +1238,7 @@ set_initial_hints (GdkSurface *surface)
toplevel->map_serial = NextRequest (xdisplay);
}
-static void
+void
gdk_x11_surface_show (GdkSurface *surface, gboolean already_mapped)
{
GdkDisplay *display;
@@ -3146,7 +3146,7 @@ gdk_x11_surface_unminimize (GdkSurface *surface)
if (GDK_SURFACE_IS_MAPPED (surface))
{
- gdk_surface_show (surface);
+ gdk_x11_surface_show (surface, TRUE);
gdk_wmspec_change_state (FALSE, surface,
"_NET_WM_STATE_HIDDEN",
NULL);
@@ -4274,7 +4274,7 @@ create_moveresize_surface (MoveResizeData *mv_resize,
g_assert (mv_resize->moveresize_emulation_surface == NULL);
mv_resize->moveresize_emulation_surface = gdk_surface_new_temp (mv_resize->display, &rect);
- gdk_surface_show (mv_resize->moveresize_emulation_surface);
+ gdk_x11_surface_show (mv_resize->moveresize_emulation_surface, FALSE);
status = gdk_seat_grab (gdk_device_get_seat (mv_resize->device),
mv_resize->moveresize_emulation_surface,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]