Skip to content

Commit ffe55d9

Browse files
committed
DisplayServer (Linux): upgrade kde-output-device-v2
1 parent 28bc952 commit ffe55d9

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

src/detection/displayserver/linux/wayland/kde-output-device-v2-client-protocol.h

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Generated by wayland-scanner 1.23.1 */
1+
/* Generated by wayland-scanner 1.24.0 */
22

33
#ifndef KDE_OUTPUT_DEVICE_V2_CLIENT_PROTOCOL_H
44
#define KDE_OUTPUT_DEVICE_V2_CLIENT_PROTOCOL_H
@@ -234,6 +234,11 @@ enum kde_output_device_v2_capability {
234234
* @since 16
235235
*/
236236
KDE_OUTPUT_DEVICE_V2_CAPABILITY_EDR = 0x800,
237+
/**
238+
* if this outputdevice supports the sharpness setting
239+
* @since 17
240+
*/
241+
KDE_OUTPUT_DEVICE_V2_CAPABILITY_SHARPNESS = 0x1000,
237242
};
238243
/**
239244
* @ingroup iface_kde_output_device_v2
@@ -271,6 +276,10 @@ enum kde_output_device_v2_capability {
271276
* @ingroup iface_kde_output_device_v2
272277
*/
273278
#define KDE_OUTPUT_DEVICE_V2_CAPABILITY_EDR_SINCE_VERSION 16
279+
/**
280+
* @ingroup iface_kde_output_device_v2
281+
*/
282+
#define KDE_OUTPUT_DEVICE_V2_CAPABILITY_SHARPNESS_SINCE_VERSION 17
274283
#endif /* KDE_OUTPUT_DEVICE_V2_CAPABILITY_ENUM */
275284

276285
#ifndef KDE_OUTPUT_DEVICE_V2_VRR_POLICY_ENUM
@@ -774,6 +783,17 @@ struct kde_output_device_v2_listener {
774783
void (*edr_policy)(void *data,
775784
struct kde_output_device_v2 *kde_output_device_v2,
776785
uint32_t policy);
786+
/**
787+
* sharpness strength
788+
*
789+
* This is the sharpness modifier of the output. 0 is sharpness
790+
* disabled and 10000 is the maximum sharpness
791+
* @param sharpness sharpness in 0-10000
792+
* @since 17
793+
*/
794+
void (*sharpness)(void *data,
795+
struct kde_output_device_v2 *kde_output_device_v2,
796+
uint32_t sharpness);
777797
};
778798

779799
/**
@@ -919,6 +939,10 @@ kde_output_device_v2_add_listener(struct kde_output_device_v2 *kde_output_device
919939
* @ingroup iface_kde_output_device_v2
920940
*/
921941
#define KDE_OUTPUT_DEVICE_V2_EDR_POLICY_SINCE_VERSION 16
942+
/**
943+
* @ingroup iface_kde_output_device_v2
944+
*/
945+
#define KDE_OUTPUT_DEVICE_V2_SHARPNESS_SINCE_VERSION 17
922946

923947

924948
/** @ingroup iface_kde_output_device_v2 */

src/detection/displayserver/linux/wayland/kde-output-device-v2-protocol.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifdef FF_HAVE_WAYLAND
22

3-
/* Generated by wayland-scanner 1.23.1 */
3+
/* Generated by wayland-scanner 1.24.0 */
44

55
/*
66
* SPDX-FileCopyrightText: 2008-2011 Kristian Høgsberg
@@ -66,12 +66,13 @@ static const struct wl_message kde_output_device_v2_events[] = {
6666
{ "max_bits_per_color_range", "15uu", kde_output_device_v2_types + 0 },
6767
{ "automatic_max_bits_per_color_limit", "15u", kde_output_device_v2_types + 0 },
6868
{ "edr_policy", "16u", kde_output_device_v2_types + 0 },
69+
{ "sharpness", "17u", kde_output_device_v2_types + 0 },
6970
};
7071

7172
WL_EXPORT const struct wl_interface kde_output_device_v2_interface = {
72-
"kde_output_device_v2", 16,
73+
"kde_output_device_v2", 17,
7374
0, NULL,
74-
33, kde_output_device_v2_events,
75+
34, kde_output_device_v2_events,
7576
};
7677

7778
static const struct wl_message kde_output_device_mode_v2_events[] = {

src/detection/displayserver/linux/wayland/kde-output.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ static struct kde_output_device_v2_listener outputListener = {
177177
.max_bits_per_color_range = (void*) stubListener,
178178
.automatic_max_bits_per_color_limit = (void*) stubListener,
179179
.edr_policy = (void*) stubListener,
180+
.sharpness = (void*) stubListener,
180181
};
181182

182183
const char* ffWaylandHandleKdeOutput(WaylandData* wldata, struct wl_registry* registry, uint32_t name, uint32_t version)

0 commit comments

Comments
 (0)