diff options
author | Benjamin Otte <otte@redhat.com> | 2023-04-01 01:44:28 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2023-04-01 02:22:21 +0200 |
commit | 3d3d22e8443eb425070c39767314a9d9e5936e6f (patch) | |
tree | 499d4e4701c8ad5aba63c57c41689eb0b18d4d02 /gdk | |
parent | ae2c28af89376f69438100f1409042ec78d0ebc2 (diff) | |
download | gtk+-3d3d22e8443eb425070c39767314a9d9e5936e6f.tar.gz |
wayland: Remove unused variable
Also, Wayland has get_version() functions, so if we ever need it, we can
use that.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/wayland/gdkdisplay-wayland.c | 4 | ||||
-rw-r--r-- | gdk/wayland/gdkdisplay-wayland.h | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c index 5c43814b6d..b87fad34ae 100644 --- a/gdk/wayland/gdkdisplay-wayland.c +++ b/gdk/wayland/gdkdisplay-wayland.c @@ -511,12 +511,10 @@ gdk_registry_handle_global (void *data, } else if (strcmp (interface, "xdg_activation_v1") == 0) { - display_wayland->xdg_activation_version = - MIN (version, XDG_ACTIVATION_VERSION); display_wayland->xdg_activation = wl_registry_bind (display_wayland->wl_registry, id, &xdg_activation_v1_interface, - display_wayland->xdg_activation_version); + MIN (version, XDG_ACTIVATION_VERSION)); } g_hash_table_insert (display_wayland->known_globals, diff --git a/gdk/wayland/gdkdisplay-wayland.h b/gdk/wayland/gdkdisplay-wayland.h index e143165c36..649194dad4 100644 --- a/gdk/wayland/gdkdisplay-wayland.h +++ b/gdk/wayland/gdkdisplay-wayland.h @@ -138,7 +138,6 @@ struct _GdkWaylandDisplay int gtk_shell_version; int xdg_output_manager_version; int pointer_gestures_version; - int xdg_activation_version; uint32_t server_decoration_mode; |