Skip to content

Commit ba8976e

Browse files
committed
refactor(linux/kwin): Use constant from wayland protocol instead of redefinition
1 parent b0ec6dd commit ba8976e

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/platform/linux/kwingrab.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@
3838
#include "src/video.h"
3939
#include "vaapi.h"
4040

41-
namespace {
42-
// KDE ScreenCast cursor modes (from protocol enum)
43-
constexpr uint32_t CURSOR_HIDDEN = 1;
44-
constexpr uint32_t CURSOR_EMBEDDED = 2;
45-
constexpr uint32_t CURSOR_METADATA = 4;
46-
} // namespace
47-
4841
using namespace std::literals;
4942

5043
extern const wl_interface wl_output_interface;
@@ -398,7 +391,7 @@ namespace kwin {
398391
}
399392

400393
// Request a stream for the chosen output with embedded cursor
401-
zkde_screencast_stream = zkde_screencast_unstable_v1_stream_output(zkde_screencast, output, CURSOR_EMBEDDED);
394+
zkde_screencast_stream = zkde_screencast_unstable_v1_stream_output(zkde_screencast, output, ZKDE_SCREENCAST_UNSTABLE_V1_POINTER_EMBEDDED);
402395
zkde_screencast_stream_unstable_v1_add_listener(zkde_screencast_stream, &stream_listener, this);
403396

404397
// Dispatch until we get created/failed, with a 5s timeout

0 commit comments

Comments
 (0)