diff options
author | Benjamin Otte <otte@redhat.com> | 2023-04-11 19:45:50 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2023-04-11 19:45:50 +0200 |
commit | f2994cf8266c7c72cf9e657ae196d45e5fe1fd69 (patch) | |
tree | cff36201958a403851ed9ba7fd3fc9309dae8775 | |
parent | e11fdd33d92d101ecbe4c463b9da822f0a24c0ab (diff) | |
download | gtk+-wip/otte/scrollinfo.tar.gz |
wayland: Don't create resources on constructwip/otte/scrollinfo
Instead, wait until present().
This makes resource construction happen in present() in destruction in
hide() and makes sure things are matched.
In particular, it avoids a mismatch between surfaces that have been
present()ed before but are hidden again and surfaces that have never
been presented.
-rw-r--r-- | gdk/wayland/gdksurface-wayland.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c index 0cebc00474..5365419433 100644 --- a/gdk/wayland/gdksurface-wayland.c +++ b/gdk/wayland/gdksurface-wayland.c @@ -599,8 +599,6 @@ _gdk_wayland_display_create_surface (GdkDisplay *display, } } - gdk_wayland_surface_create_wl_surface (surface); - g_signal_connect (frame_clock, "before-paint", G_CALLBACK (on_frame_clock_before_paint), surface); g_signal_connect (frame_clock, "after-paint", G_CALLBACK (on_frame_clock_after_paint), surface); |