Skip to main content

Module kde_mode_list_v2

Module kde_mode_list_v2 

Source
Expand description

a list of custom modes

This list is populated by first setting each relevant property, and then calling add_mode to add a mode with these properties. One would for example call

  • set_resolution
  • set_refresh_rate
  • set_reduced_blanking
  • add_mode

add_mode does not reset the properties that were previously set, they are valid until the object is destroyed. The compositor may additionally have sensible defaults for some properties like reduced_blanking, but for consistent results, it’s best to always set each known property every time.

One can also specify custom modes with CVT timings, for example

  • add_cvt
  • add_cvt

The parameters resolution and refresh rate are required, if they are not set, the missing_parameters error will be emitted.

Structs§

KdeModeListV2
a list of custom modes

Enums§

Error
kde_mode_list_v2 error values
Event
Request

Constants§

REQ_ADD_CVT_OPCODE
The wire opcode for this request
REQ_ADD_CVT_SINCE
The minimal object version supporting this request
REQ_ADD_MODE_OPCODE
The wire opcode for this request
REQ_ADD_MODE_SINCE
The minimal object version supporting this request
REQ_DESTROY_OPCODE
The wire opcode for this request
REQ_DESTROY_SINCE
The minimal object version supporting this request
REQ_SET_REDUCED_BLANKING_OPCODE
The wire opcode for this request
REQ_SET_REDUCED_BLANKING_SINCE
The minimal object version supporting this request
REQ_SET_REFRESH_RATE_OPCODE
The wire opcode for this request
REQ_SET_REFRESH_RATE_SINCE
The minimal object version supporting this request
REQ_SET_RESOLUTION_OPCODE
The wire opcode for this request
REQ_SET_RESOLUTION_SINCE
The minimal object version supporting this request