|
Dunst
Lightweight notification daemon
|
#include <assert.h>#include <stdlib.h>#include <stdio.h>#include <stdbool.h>#include <wayland-client.h>#include <wayland-client-protocol.h>#include <wayland-util.h>#include <wayland-cursor.h>#include <errno.h>#include <fcntl.h>#include <sys/mman.h>#include <time.h>#include <unistd.h>#include <linux/input-event-codes.h>#include <string.h>#include <glib.h>#include "protocols/xdg-shell-client-header.h"#include "protocols/xdg-shell.h"#include "protocols/wlr-layer-shell-unstable-v1-client-header.h"#include "protocols/wlr-layer-shell-unstable-v1.h"#include "protocols/wlr-foreign-toplevel-management-unstable-v1-client-header.h"#include "protocols/wlr-foreign-toplevel-management-unstable-v1.h"#include "wl.h"#include "pool-buffer.h"#include "../dunst.h"#include "../log.h"#include "../settings.h"#include "libgwater-wayland.h"#include "foreign_toplevel.h"#include "wl_ctx.h"#include "wl_output.h"#include "wl_seat.h"
Include dependency graph for wl.c:Go to the source code of this file.
Data Structures | |
| struct | window_wl |
Macros | |
| #define | _POSIX_C_SOURCE 200112L |
Functions | |
| static void | surface_handle_enter (void *data, struct wl_surface *surface, struct wl_output *wl_output) |
| static void | surface_handle_leave (void *data, struct wl_surface *surface, struct wl_output *wl_output) |
| static void | schedule_frame_and_commit (void) |
| static void | send_frame (void) |
| static void | layer_surface_handle_configure (void *data, struct zwlr_layer_surface_v1 *surface, uint32_t serial, uint32_t width, uint32_t height) |
| static void | xdg_surface_handle_configure (void *data, struct xdg_surface *surface, uint32_t serial) |
| static void | xdg_toplevel_handle_configure (void *data, struct xdg_toplevel *xdg_toplevel, int32_t width, int32_t height, struct wl_array *states) |
| static void | surface_handle_closed (void) |
| static void | layer_surface_handle_closed (void *data, struct zwlr_layer_surface_v1 *surface) |
| static void | xdg_toplevel_handle_close (void *data, struct xdg_toplevel *surface) |
| static void | xdg_wm_base_handle_ping (void *data, struct xdg_wm_base *xdg_wm_base, uint32_t serial) |
| static struct dunst_output * | get_configured_output (void) |
| static void | handle_global (void *data, struct wl_registry *registry, uint32_t name, const char *interface, uint32_t version) |
| static void | handle_global_remove (void *data, struct wl_registry *registry, uint32_t name) |
| bool | wl_init (void) |
| void | wl_deinit (void) |
| static void | frame_handle_done (void *data, struct wl_callback *callback, uint32_t time) |
| void | set_dirty (void) |
| window | wl_win_create (void) |
| void | wl_win_destroy (window winptr) |
| void | wl_win_show (window win) |
| void | wl_win_hide (window win) |
| void | wl_display_surface (cairo_surface_t *srf, window winptr, const struct dimensions *dim) |
| cairo_t * | wl_win_get_context (window winptr) |
| const struct screen_info * | wl_get_active_screen (void) |
| bool | wl_is_idle (void) |
| bool | wl_have_fullscreen_window (void) |
| double | wl_get_scale (void) |
Variables | |
| struct wl_ctx | ctx = { 0 } |
| static const struct wl_surface_listener | surface_listener |
| static const struct zwlr_layer_surface_v1_listener | layer_surface_listener |
| static const struct xdg_wm_base_listener | xdg_wm_base_listener |
| static const struct xdg_surface_listener | xdg_surface_listener |
| static const struct xdg_toplevel_listener | xdg_toplevel_listener |
| static const struct wl_registry_listener | registry_listener |
| static const struct wl_callback_listener | frame_listener |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| void wl_display_surface | ( | cairo_surface_t * | srf, |
| window | winptr, | ||
| const struct dimensions * | dim ) |
| const struct screen_info * wl_get_active_screen | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |