DisplayServer (Linux): upgrade kde-output-device-v2

This commit is contained in:
Carter Li
2025-08-28 16:09:47 +08:00
parent 28bc9523d6
commit ffe55d9eee
3 changed files with 30 additions and 4 deletions
@@ -1,4 +1,4 @@
/* Generated by wayland-scanner 1.23.1 */
/* Generated by wayland-scanner 1.24.0 */
#ifndef KDE_OUTPUT_DEVICE_V2_CLIENT_PROTOCOL_H
#define KDE_OUTPUT_DEVICE_V2_CLIENT_PROTOCOL_H
@@ -234,6 +234,11 @@ enum kde_output_device_v2_capability {
* @since 16
*/
KDE_OUTPUT_DEVICE_V2_CAPABILITY_EDR = 0x800,
/**
* if this outputdevice supports the sharpness setting
* @since 17
*/
KDE_OUTPUT_DEVICE_V2_CAPABILITY_SHARPNESS = 0x1000,
};
/**
* @ingroup iface_kde_output_device_v2
@@ -271,6 +276,10 @@ enum kde_output_device_v2_capability {
* @ingroup iface_kde_output_device_v2
*/
#define KDE_OUTPUT_DEVICE_V2_CAPABILITY_EDR_SINCE_VERSION 16
/**
* @ingroup iface_kde_output_device_v2
*/
#define KDE_OUTPUT_DEVICE_V2_CAPABILITY_SHARPNESS_SINCE_VERSION 17
#endif /* KDE_OUTPUT_DEVICE_V2_CAPABILITY_ENUM */
#ifndef KDE_OUTPUT_DEVICE_V2_VRR_POLICY_ENUM
@@ -774,6 +783,17 @@ struct kde_output_device_v2_listener {
void (*edr_policy)(void *data,
struct kde_output_device_v2 *kde_output_device_v2,
uint32_t policy);
/**
* sharpness strength
*
* This is the sharpness modifier of the output. 0 is sharpness
* disabled and 10000 is the maximum sharpness
* @param sharpness sharpness in 0-10000
* @since 17
*/
void (*sharpness)(void *data,
struct kde_output_device_v2 *kde_output_device_v2,
uint32_t sharpness);
};
/**
@@ -919,6 +939,10 @@ kde_output_device_v2_add_listener(struct kde_output_device_v2 *kde_output_device
* @ingroup iface_kde_output_device_v2
*/
#define KDE_OUTPUT_DEVICE_V2_EDR_POLICY_SINCE_VERSION 16
/**
* @ingroup iface_kde_output_device_v2
*/
#define KDE_OUTPUT_DEVICE_V2_SHARPNESS_SINCE_VERSION 17
/** @ingroup iface_kde_output_device_v2 */
@@ -1,6 +1,6 @@
#ifdef FF_HAVE_WAYLAND
/* Generated by wayland-scanner 1.23.1 */
/* Generated by wayland-scanner 1.24.0 */
/*
* SPDX-FileCopyrightText: 2008-2011 Kristian Høgsberg
@@ -66,12 +66,13 @@ static const struct wl_message kde_output_device_v2_events[] = {
{ "max_bits_per_color_range", "15uu", kde_output_device_v2_types + 0 },
{ "automatic_max_bits_per_color_limit", "15u", kde_output_device_v2_types + 0 },
{ "edr_policy", "16u", kde_output_device_v2_types + 0 },
{ "sharpness", "17u", kde_output_device_v2_types + 0 },
};
WL_EXPORT const struct wl_interface kde_output_device_v2_interface = {
"kde_output_device_v2", 16,
"kde_output_device_v2", 17,
0, NULL,
33, kde_output_device_v2_events,
34, kde_output_device_v2_events,
};
static const struct wl_message kde_output_device_mode_v2_events[] = {
@@ -177,6 +177,7 @@ static struct kde_output_device_v2_listener outputListener = {
.max_bits_per_color_range = (void*) stubListener,
.automatic_max_bits_per_color_limit = (void*) stubListener,
.edr_policy = (void*) stubListener,
.sharpness = (void*) stubListener,
};
const char* ffWaylandHandleKdeOutput(WaylandData* wldata, struct wl_registry* registry, uint32_t name, uint32_t version)