[packages/wlcs] - updated to 1.8.1 + adjusted git patch for gtest 1.18

qboosh qboosh at pld-linux.org
Wed Nov 4 22:11:46 CET 2026


commit 0ea9525248c75616d50867a55145a510cead8e00
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Nov 4 22:12:38 2026 +0100

    - updated to 1.8.1 + adjusted git patch for gtest 1.18

 wlcs-gtest.patch  | 315 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 wlcs-remove.patch |  26 -----
 wlcs.spec         |  23 ++--
 3 files changed, 327 insertions(+), 37 deletions(-)
---
diff --git a/wlcs.spec b/wlcs.spec
index 6a8ee1a..cc3afb6 100644
--- a/wlcs.spec
+++ b/wlcs.spec
@@ -14,25 +14,26 @@
 Summary:	Wayland Conformance Test Suite
 Summary(pl.UTF-8):	Wayland Conformance Test Suite - testy zgodności Waylanda
 Name:		wlcs
-Version:	1.7.0
-Release:	4
+Version:	1.8.1
+Release:	1
 License:	GPL v3
 Group:		Libraries
 #Source0Download: https://github.com/canonical/wlcs/releases
 Source0:	https://github.com/canonical/wlcs/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	67d7233657987b335944fe658a76dd2c
-Patch0:		%{name}-remove.patch
+# Source0-md5:	ed87f2957966eb22c83d4573e9a630cd
+Patch0:		%{name}-gtest.patch
 URL:		https://github.com/canonical/wlcs
 BuildRequires:	boost-devel
 BuildRequires:	cmake >= 3.5
-BuildRequires:	gmock-devel
-BuildRequires:	gtest-devel
+BuildRequires:	gmock-devel >= 1.18
+BuildRequires:	gtest-devel >= 1.18
 %{?with_asan:BuildRequires:	libasan-devel}
 # c++20
 BuildRequires:	libstdc++-devel >= 6:8
 %{?with_tsan:BuildRequires:	libtsan-devel}
 %{?with_ubsan:BuildRequires:	libubsan-devel}
 BuildRequires:	pkgconfig
+BuildRequires:	rpmbuild(macros) >= 2.047
 BuildRequires:	sed >= 4.0
 # client, server, scanner
 BuildRequires:	wayland-devel
@@ -48,8 +49,8 @@ Wayland Conformance Test Suite - testy zgodności Waylanda.
 Summary:	Header files for wlcs
 Summary(pl.UTF-8):	Pliki nagłówkowe wlcs
 Group:		Development/Libraries
-Requires:	%{name} = %{version}-%{release}
-Requires:	wayland-devel
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+Requires:	wayland-devel%{?_isa}
 
 %description devel
 Header files for wlcs.
@@ -68,9 +69,9 @@ Pliki nagłówkowe wlcs.
 install -d build
 cd build
 %cmake .. \
-	%{cmake_on_off asan WLCS_BUILD_ASAN} \
-	%{cmake_on_off tsan WLCS_BUILD_TSAN} \
-	%{cmake_on_off ubsan WLCS_BUILD_UBSAN}
+	-DWLCS_BUILD_ASAN=%{__ON_OFF asan} \
+	-DWLCS_BUILD_TSAN=%{__ON_OFF tsan} \
+	-DWLCS_BUILD_UBSAN=%{__ON_OFF ubsan}
 
 %{__make}
 
diff --git a/wlcs-gtest.patch b/wlcs-gtest.patch
new file mode 100644
index 0000000..07d64f3
--- /dev/null
+++ b/wlcs-gtest.patch
@@ -0,0 +1,315 @@
+From f623e87a8b2b9dda4d11a6dd9a12b2302fc80dcd Mon Sep 17 00:00:00 2001
+From: "copilot-swe-agent[bot]" <198982749+Copilot at users.noreply.github.com>
+Date: Wed, 9 Sep 2026 15:31:39 +0000
+Subject: [PATCH] Remove deprecated gmock Invoke wrappers in tests
+
+Co-authored-by: saviq-work <318321079+saviq-work at users.noreply.github.com>
+---
+ tests/ext_data_control_v1.cpp                 |  6 ++--
+ tests/wl_data_device_drag_and_drop.cpp        | 12 ++++----
+ tests/wl_data_offer_copy_cut_paste.cpp        |  4 +--
+ tests/wl_data_offer_gtk_primary_selection.cpp |  4 +--
+ tests/wlr_virtual_pointer_v1.cpp              | 30 +++++++++----------
+ tests/zwp_primary_selection_v1.cpp            |  4 +--
+ ...zwp_text_input_v2_with_input_method_v1.cpp | 24 +++++++--------
+ 7 files changed, 42 insertions(+), 42 deletions(-)
+
+--- wlcs-1.8.1/tests/copy_cut_paste.cpp.orig	2025-08-14 09:41:20.000000000 +0200
++++ wlcs-1.8.1/tests/copy_cut_paste.cpp	2026-11-04 19:15:02.391582670 +0100
+@@ -108,8 +108,8 @@ TEST_F(CopyCutPaste, given_source_has_of
+ 
+     EXPECT_CALL(mdol, offer(_, StrEq(any_mime_type)));
+     EXPECT_CALL(sink.listener, data_offer(_,_))
+-        .WillOnce(Invoke([&](struct wl_data_device*, struct wl_data_offer* id)
+-        { mdol.listen_to(id); }));
++        .WillOnce([&](struct wl_data_device*, struct wl_data_offer* id)
++        { mdol.listen_to(id); });
+ 
+     sink.create_surface_with_focus();
+ }
+@@ -120,8 +120,8 @@ TEST_F(CopyCutPaste, given_sink_has_focu
+ 
+     EXPECT_CALL(mdol, offer(_, StrEq(any_mime_type)));
+     EXPECT_CALL(sink.listener, data_offer(_,_))
+-        .WillOnce(Invoke([&](struct wl_data_device*, struct wl_data_offer* id)
+-        { mdol.listen_to(id); }));
++        .WillOnce([&](struct wl_data_device*, struct wl_data_offer* id)
++        { mdol.listen_to(id); });
+ 
+     source.offer(any_mime_type);
+ }
+--- wlcs-1.8.1/tests/gtk_primary_selection.cpp.orig	2025-08-14 09:41:20.000000000 +0200
++++ wlcs-1.8.1/tests/gtk_primary_selection.cpp	2026-11-04 19:09:04.673520596 +0100
+@@ -163,7 +163,7 @@ TEST_F(GtkPrimarySelection, sink_can_lis
+ 
+     InSequence seq;
+     EXPECT_CALL(device_listener, data_offer(_, _))
+-        .WillOnce(Invoke([&](auto*, auto* id) { offer_listener.listen_to(id); }));
++        .WillOnce([&](auto*, auto* id) { offer_listener.listen_to(id); });
+ 
+     EXPECT_CALL(offer_listener, offer(_, StrEq(any_mime_type)));
+ 
+@@ -201,7 +201,7 @@ TEST_F(GtkPrimarySelection, source_sees_
+ 
+     EXPECT_CALL(source_listener, send(_, _, _))
+         .Times(1)
+-        .WillRepeatedly(Invoke([&](auto*, auto*, int fd) { close(fd); }));
++        .WillRepeatedly([&](auto*, auto*, int fd) { close(fd); });
+ 
+     Pipe pipe;
+     gtk_primary_selection_offer_receive(device_listener.selected, any_mime_type, pipe.source);
+--- wlcs-1.8.1/tests/wlr_virtual_pointer_v1.cpp.orig	2025-08-14 09:41:20.000000000 +0200
++++ wlcs-1.8.1/tests/wlr_virtual_pointer_v1.cpp	2026-11-03 21:23:07.341352054 +0100
+@@ -126,7 +126,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+         wl_fixed_from_int(pointer_start_y + motion_y)));
+ 
+     auto recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce([&]{ recieved_frame = true; });
+ 
+     auto const handle = zwlr_virtual_pointer_manager_v1_create_virtual_pointer(manager, nullptr);
+     zwlr_virtual_pointer_v1_motion(handle, 0, wl_fixed_from_int(motion_x), wl_fixed_from_int(motion_y));
+@@ -146,7 +146,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+ 
+     EXPECT_CALL(listener, motion(_, _, _)).Times(AnyNumber());
+     auto recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AnyNumber()).WillOnce(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AnyNumber()).WillOnce([&]{ recieved_frame = true; });
+     zwlr_virtual_pointer_v1_motion(handle, 0, wl_fixed_from_int(motion1_x), wl_fixed_from_int(motion1_y));
+     zwlr_virtual_pointer_v1_frame(handle);
+     send_client.roundtrip();
+@@ -156,7 +156,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+         wl_fixed_from_int(pointer_start_x + motion1_x + motion2_x),
+         wl_fixed_from_int(pointer_start_y + motion1_y + motion2_y)));
+     recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce([&]{ recieved_frame = true; });
+     zwlr_virtual_pointer_v1_motion(handle, 0, wl_fixed_from_int(motion2_x), wl_fixed_from_int(motion2_y));
+     zwlr_virtual_pointer_v1_frame(handle);
+     send_client.roundtrip();
+@@ -167,7 +167,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+ {
+     EXPECT_CALL(listener, button(_, _, BTN_LEFT, WL_POINTER_BUTTON_STATE_PRESSED));
+     auto recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce([&]{ recieved_frame = true; });
+     auto const handle = zwlr_virtual_pointer_manager_v1_create_virtual_pointer(manager, nullptr);
+     zwlr_virtual_pointer_v1_button(handle, 0, BTN_LEFT, WL_POINTER_BUTTON_STATE_PRESSED);
+     zwlr_virtual_pointer_v1_frame(handle);
+@@ -179,7 +179,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+ {
+     EXPECT_CALL(listener, button(_, _, _, _)).Times(AnyNumber());
+     auto recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AnyNumber()).WillOnce(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AnyNumber()).WillOnce([&]{ recieved_frame = true; });
+     auto const handle = zwlr_virtual_pointer_manager_v1_create_virtual_pointer(manager, nullptr);
+     zwlr_virtual_pointer_v1_button(handle, 0, BTN_LEFT, WL_POINTER_BUTTON_STATE_PRESSED);
+     zwlr_virtual_pointer_v1_frame(handle);
+@@ -189,7 +189,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+ 
+     EXPECT_CALL(listener, button(_, _, BTN_LEFT, WL_POINTER_BUTTON_STATE_RELEASED));
+     recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce([&]{ recieved_frame = true; });
+     zwlr_virtual_pointer_v1_button(handle, 0, BTN_LEFT, WL_POINTER_BUTTON_STATE_RELEASED);
+     zwlr_virtual_pointer_v1_frame(handle);
+     send_client.roundtrip();
+@@ -201,7 +201,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+     EXPECT_CALL(listener, button(_, _, BTN_LEFT, WL_POINTER_BUTTON_STATE_PRESSED));
+     EXPECT_CALL(listener, button(_, _, BTN_MIDDLE, WL_POINTER_BUTTON_STATE_PRESSED));
+     auto recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce([&]{ recieved_frame = true; });
+     auto const handle = zwlr_virtual_pointer_manager_v1_create_virtual_pointer(manager, nullptr);
+     zwlr_virtual_pointer_v1_button(handle, 0, BTN_LEFT, WL_POINTER_BUTTON_STATE_PRESSED);
+     zwlr_virtual_pointer_v1_button(handle, 0, BTN_MIDDLE, WL_POINTER_BUTTON_STATE_PRESSED);
+@@ -214,7 +214,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+ {
+     EXPECT_CALL(listener, button(_, _, _, _)).Times(AnyNumber());
+     auto recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AnyNumber()).WillRepeatedly(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AnyNumber()).WillRepeatedly([&]{ recieved_frame = true; });
+     auto const handle = zwlr_virtual_pointer_manager_v1_create_virtual_pointer(manager, nullptr);
+     zwlr_virtual_pointer_v1_button(handle, 0, BTN_LEFT, WL_POINTER_BUTTON_STATE_PRESSED);
+     zwlr_virtual_pointer_v1_frame(handle);
+@@ -225,7 +225,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+     EXPECT_CALL(listener, button(_, _, BTN_LEFT, WL_POINTER_BUTTON_STATE_RELEASED));
+     EXPECT_CALL(listener, button(_, _, BTN_RIGHT, WL_POINTER_BUTTON_STATE_PRESSED));
+     recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce([&]{ recieved_frame = true; });
+     zwlr_virtual_pointer_v1_button(handle, 0, BTN_LEFT, WL_POINTER_BUTTON_STATE_RELEASED);
+     zwlr_virtual_pointer_v1_button(handle, 0, BTN_RIGHT, WL_POINTER_BUTTON_STATE_PRESSED);
+     zwlr_virtual_pointer_v1_frame(handle);
+@@ -242,7 +242,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+     EXPECT_CALL(listener, axis(_, WL_POINTER_AXIS_VERTICAL_SCROLL, wl_fixed_from_int(5)));
+     EXPECT_CALL(listener, axis_source(_)).Times(AnyNumber());
+     auto recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce([&]{ recieved_frame = true; });
+     auto const handle = zwlr_virtual_pointer_manager_v1_create_virtual_pointer(manager, nullptr);
+     zwlr_virtual_pointer_v1_axis(handle, 0, WL_POINTER_AXIS_VERTICAL_SCROLL, wl_fixed_from_int(5));
+     zwlr_virtual_pointer_v1_frame(handle);
+@@ -256,7 +256,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+     EXPECT_CALL(listener, axis_discrete(WL_POINTER_AXIS_HORIZONTAL_SCROLL, 4));
+     EXPECT_CALL(listener, axis_source(_)).Times(AnyNumber());
+     auto recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce([&]{ recieved_frame = true; });
+     auto const handle = zwlr_virtual_pointer_manager_v1_create_virtual_pointer(manager, nullptr);
+     zwlr_virtual_pointer_v1_axis_discrete(handle, 0, WL_POINTER_AXIS_HORIZONTAL_SCROLL, wl_fixed_from_int(5), 4);
+     zwlr_virtual_pointer_v1_frame(handle);
+@@ -269,7 +269,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+     EXPECT_CALL(listener, axis(_, _, _)).Times(AnyNumber());
+     EXPECT_CALL(listener, axis_source(WL_POINTER_AXIS_SOURCE_CONTINUOUS));
+     auto recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce([&]{ recieved_frame = true; });
+     auto const handle = zwlr_virtual_pointer_manager_v1_create_virtual_pointer(manager, nullptr);
+     zwlr_virtual_pointer_v1_axis(handle, 0, WL_POINTER_AXIS_VERTICAL_SCROLL, wl_fixed_from_int(5));
+     zwlr_virtual_pointer_v1_axis_source(handle, WL_POINTER_AXIS_SOURCE_CONTINUOUS);
+@@ -277,7 +277,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+     send_client.roundtrip();
+     receive_client.dispatch_until([&] { return recieved_frame; });
+     auto axis_source = false;
+-    EXPECT_CALL(listener, axis_source(WL_POINTER_AXIS_SOURCE_WHEEL)).WillOnce(Invoke([&]{ axis_source = true; }));
++    EXPECT_CALL(listener, axis_source(WL_POINTER_AXIS_SOURCE_WHEEL)).WillOnce([&]{ axis_source = true; });
+     zwlr_virtual_pointer_v1_axis(handle, 0, WL_POINTER_AXIS_VERTICAL_SCROLL, wl_fixed_from_int(5));
+     zwlr_virtual_pointer_v1_axis_source(handle, WL_POINTER_AXIS_SOURCE_WHEEL);
+     zwlr_virtual_pointer_v1_frame(handle);
+@@ -322,7 +322,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+         wl_fixed_from_int(move_to_x),
+         wl_fixed_from_int(move_to_y)));
+     auto recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce([&]{ recieved_frame = true; });
+ 
+     auto const handle = zwlr_virtual_pointer_manager_v1_create_virtual_pointer(manager, nullptr);
+     zwlr_virtual_pointer_v1_motion_absolute(handle, 0, move_to_x, move_to_y, output_size.first, output_size.second);
+@@ -348,7 +348,7 @@ TEST_F(VirtualPointerV1Test, when_virtua
+         wl_fixed_from_int(move_to_x),
+         wl_fixed_from_int(move_to_y)));
+     auto recieved_frame = false;
+-    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce(Invoke([&]{ recieved_frame = true; }));
++    EXPECT_CALL(listener, frame()).Times(AtLeast(1)).WillOnce([&]{ recieved_frame = true; });
+ 
+     auto const handle = zwlr_virtual_pointer_manager_v1_create_virtual_pointer(manager, nullptr);
+     zwlr_virtual_pointer_v1_motion_absolute(
+--- wlcs-1.8.1/tests/primary_selection.cpp.orig	2025-08-14 09:41:20.000000000 +0200
++++ wlcs-1.8.1/tests/primary_selection.cpp	2026-11-04 19:59:16.413871264 +0100
+@@ -164,7 +164,7 @@ TEST_F(PrimarySelection, sink_can_listen
+ 
+     InSequence seq;
+     EXPECT_CALL(device_listener, data_offer(_, _))
+-        .WillOnce(Invoke([&](auto*, auto* id) { offer_listener.listen_to(id); }));
++        .WillOnce([&](auto*, auto* id) { offer_listener.listen_to(id); });
+ 
+     EXPECT_CALL(offer_listener, offer(_, StrEq(any_mime_type)));
+ 
+@@ -202,7 +202,7 @@ TEST_F(PrimarySelection, source_sees_req
+ 
+     EXPECT_CALL(source_listener, send(_, _, _))
+         .Times(1)
+-        .WillRepeatedly(Invoke([&](auto*, auto*, int fd) { close(fd); }));
++        .WillRepeatedly([&](auto*, auto*, int fd) { close(fd); });
+ 
+     Pipe pipe;
+     zwp_primary_selection_offer_v1_receive(device_listener.selected, any_mime_type, pipe.source);
+--- wlcs-1.8.1/tests/text_input_v2_with_input_method_v1.cpp.orig	2025-08-14 09:41:20.000000000 +0200
++++ wlcs-1.8.1/tests/text_input_v2_with_input_method_v1.cpp	2026-11-04 20:19:40.890571038 +0100
+@@ -140,7 +140,7 @@ TEST_F(TextInputV2WithInputMethodV1Test,
+ 
+     bool is_deactivated = false;
+     EXPECT_CALL(*this, deactivate(_))
+-        .WillOnce(Invoke([&]{ is_deactivated = true; }));
++        .WillOnce([&]{ is_deactivated = true; });
+     zwp_text_input_v2_disable(text_input, app_surface->wl_surface());
+     zwp_text_input_v2_update_state(text_input, text_input.serial, 0);
+     input_client_wait_for_app_client_roundtrip([&]() { return is_deactivated; });
+@@ -155,7 +155,7 @@ TEST_F(TextInputV2WithInputMethodV1Test,
+     enable_text_input();
+     bool is_triggered = false;
+     EXPECT_CALL(*input_method_context, surrounding_text(text, cursor, anchor))
+-        .WillOnce(Invoke([&]{ is_triggered = true; }));
++        .WillOnce([&]{ is_triggered = true; });
+     zwp_text_input_v2_set_surrounding_text(text_input, text, cursor, anchor);
+     zwp_text_input_v2_update_state(text_input, text_input.serial, 0);
+ 
+@@ -169,7 +169,7 @@ TEST_F(TextInputV2WithInputMethodV1Test,
+     enable_text_input();
+     bool has_been_committed = false;
+     EXPECT_CALL(text_input, commit_string(text))
+-        .WillOnce(Invoke([&]{ has_been_committed = true; }));
++        .WillOnce([&]{ has_been_committed = true; });
+     zwp_input_method_context_v1_commit_string(
+         *input_method_context, input_method_context->serial, text);
+ 
+@@ -187,11 +187,11 @@ TEST_F(TextInputV2WithInputMethodV1Test,
+ 
+     int callback_count = 0;
+     EXPECT_CALL(text_input, commit_string(text))
+-        .WillOnce(Invoke([&]{ callback_count++; }));
++        .WillOnce([&]{ callback_count++; });
+     EXPECT_CALL(text_input, cursor_position(index, 0))
+-        .WillOnce(Invoke([&]{ callback_count++; }));
++        .WillOnce([&]{ callback_count++; });
+     EXPECT_CALL(text_input, delete_surrounding_text(0, length))
+-        .WillOnce(Invoke([&]{ callback_count++; }));
++        .WillOnce([&]{ callback_count++; });
+     input_client.roundtrip();
+     zwp_input_method_context_v1_delete_surrounding_text(*input_method_context, index, length);
+     zwp_input_method_context_v1_commit_string(*input_method_context, input_method_context->serial, text);
+@@ -209,7 +209,7 @@ TEST_F(TextInputV2WithInputMethodV1Test,
+ 
+     bool has_received_keysym = false;
+     EXPECT_CALL(text_input, keysym(time, sym, state, modifiers))
+-        .WillOnce(Invoke([&]{ has_received_keysym = true; }));
++        .WillOnce([&]{ has_received_keysym = true; });
+     zwp_input_method_context_v1_keysym(
+         *input_method_context,
+         input_method_context->serial,
+@@ -226,7 +226,7 @@ TEST_F(TextInputV2WithInputMethodV1Test,
+ 
+     bool has_received_preedit_string = false;
+     EXPECT_CALL(text_input, preedit_string(preedit_text, preedit_commit))
+-        .WillOnce(Invoke([&]{ has_received_preedit_string = true; }));
++        .WillOnce([&]{ has_received_preedit_string = true; });
+     zwp_input_method_context_v1_preedit_string(
+         *input_method_context,
+         input_method_context->serial,
+@@ -247,7 +247,7 @@ TEST_F(TextInputV2WithInputMethodV1Test,
+ 
+     bool has_received_preedit_style = false;
+     EXPECT_CALL(text_input, predit_styling(index, length, style))
+-        .WillOnce(Invoke([&]{ has_received_preedit_style = true; }));
++        .WillOnce([&]{ has_received_preedit_style = true; });
+     zwp_input_method_context_v1_preedit_styling(
+         *input_method_context,
+         index,
+@@ -271,7 +271,7 @@ TEST_F(TextInputV2WithInputMethodV1Test,
+ 
+     bool has_received_preedit_cursor = false;
+     EXPECT_CALL(text_input, preedit_cursor(index))
+-        .WillOnce(Invoke([&]{ has_received_preedit_cursor = true; }));
++        .WillOnce([&]{ has_received_preedit_cursor = true; });
+     zwp_input_method_context_v1_preedit_cursor(
+         *input_method_context,
+         index);
+@@ -297,7 +297,7 @@ TEST_F(TextInputV2WithInputMethodV1Test,
+ 
+     bool has_received_modifier_map = false;
+     EXPECT_CALL(text_input, modifiers_map(_))
+-        .WillOnce(Invoke([&]{ has_received_modifier_map = true; }));
++        .WillOnce([&]{ has_received_modifier_map = true; });
+     zwp_input_method_context_v1_modifiers_map(
+         *input_method_context,
+         &map);
+@@ -314,7 +314,7 @@ TEST_F(TextInputV2WithInputMethodV1Test,
+ 
+     bool has_received_text_direction = false;
+     EXPECT_CALL(text_input, text_direction(direction))
+-        .WillOnce(Invoke([&]{ has_received_text_direction = true; }));
++        .WillOnce([&]{ has_received_text_direction = true; });
+     zwp_input_method_context_v1_text_direction(
+         *input_method_context,
+         input_method_context->serial,
diff --git a/wlcs-remove.patch b/wlcs-remove.patch
deleted file mode 100644
index 631b83c..0000000
--- a/wlcs-remove.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From 5c812e560052e2cbff4c6d26439935020ddee52f Mon Sep 17 00:00:00 2001
-From: Alan Griffiths <alan at octopull.co.uk>
-Date: Tue, 19 Mar 2024 10:30:13 +0000
-Subject: [PATCH] "remove"? I don't think that algorithm does what you think it
- does
-
----
- tests/wlr_foreign_toplevel_management_v1.cpp | 5 +----
- 1 file changed, 1 insertion(+), 4 deletions(-)
-
-diff --git a/tests/wlr_foreign_toplevel_management_v1.cpp b/tests/wlr_foreign_toplevel_management_v1.cpp
-index b824d3db..b7a59de9 100644
---- a/tests/wlr_foreign_toplevel_management_v1.cpp
-+++ b/tests/wlr_foreign_toplevel_management_v1.cpp
-@@ -110,10 +110,7 @@ ForeignToplevelHandle::ForeignToplevelHandle(zwlr_foreign_toplevel_handle_v1* ha
-             wl_output* output)
-             {
-                 auto self = get_self(data);
--                std::remove(
--                    self->outputs_.begin(),
--                    self->outputs_.end(),
--                    output);
-+                std::erase(self->outputs_, output);
-                 self->dirty_ = true;
-             },
-         [] /*state */ (
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wlcs.git/commitdiff/0ea9525248c75616d50867a55145a510cead8e00



More information about the pld-cvs-commit mailing list