Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
output.h File Reference

Generic graphics backend wrapper. More...

#include <stdbool.h>
#include <glib.h>
#include <cairo.h>
+ Include dependency graph for output.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dimensions
 
struct  screen_info
 
struct  output
 

Macros

#define X11_SUPPORT   0
 
#define WAYLAND_SUPPORT   0
 

Typedefs

typedef gpointer window
 

Functions

const struct outputoutput_create (bool force_xwayland)
 return an initialized output, selecting the correct output type from either wayland or X11 according to the settings and environment.
 
bool is_running_wayland (void)
 

Detailed Description

Generic graphics backend wrapper.

License
BSD-3-Clause

Definition in file output.h.

Macro Definition Documentation

◆ WAYLAND_SUPPORT

#define WAYLAND_SUPPORT   0

Definition at line 72 of file output.h.

◆ X11_SUPPORT

#define X11_SUPPORT   0

Definition at line 66 of file output.h.

Typedef Documentation

◆ window

typedef gpointer window

Definition at line 17 of file output.h.

Function Documentation

◆ is_running_wayland()

bool is_running_wayland ( void )

Definition at line 20 of file output.c.

◆ output_create()

const struct output * output_create ( bool force_xwayland)

return an initialized output, selecting the correct output type from either wayland or X11 according to the settings and environment.

When the wayland output fails to initilize, it falls back to X11 output.

Either output is skipped if it was not compiled.

Definition at line 99 of file output.c.