wayland: Remove unused variable
authorBenjamin Otte <otte@redhat.com>
Fri, 31 Mar 2023 23:44:28 +0000 (01:44 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 1 Apr 2023 00:22:21 +0000 (02:22 +0200)
Also, Wayland has get_version() functions, so if we ever need it, we can
use that.

gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkdisplay-wayland.h

index 5c43814b6d7e8f87700ca0c0f51ee78c3297959a..b87fad34aefb0a4b4be4e59319d604e1d0780c4d 100644 (file)
@@ -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,
index e143165c367c052ef435bf9eb509caa789701a9f..649194dad4750092772e3e60f2a2eb51768e0788 100644 (file)
@@ -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;