Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
foreign_toplevel.c File Reference
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include "protocols/wlr-foreign-toplevel-management-unstable-v1-client-header.h"
#include "foreign_toplevel.h"
#include "../dunst.h"
#include "wl_output.h"
#include "wl.h"
+ Include dependency graph for foreign_toplevel.c:

Go to the source code of this file.

Macros

#define _POSIX_C_SOURCE   200112L
 

Functions

static void copy_state (struct toplevel_state *current, struct toplevel_state *pending)
 
static void toplevel_handle_output_enter (void *data, struct zwlr_foreign_toplevel_handle_v1 *zwlr_toplevel, struct wl_output *wl_output)
 
static void toplevel_handle_output_leave (void *data, struct zwlr_foreign_toplevel_handle_v1 *zwlr_toplevel, struct wl_output *wl_output)
 
static uint32_t array_to_state (struct wl_array *array)
 
static void toplevel_handle_state (void *data, struct zwlr_foreign_toplevel_handle_v1 *zwlr_toplevel, struct wl_array *state)
 
static void toplevel_handle_done (void *data, struct zwlr_foreign_toplevel_handle_v1 *zwlr_toplevel)
 
static void toplevel_handle_closed (void *data, struct zwlr_foreign_toplevel_handle_v1 *zwlr_toplevel)
 
static void toplevel_handle_title (void *data, struct zwlr_foreign_toplevel_handle_v1 *zwlr_foreign_toplevel, const char *title)
 
static void toplevel_handle_app_id (void *data, struct zwlr_foreign_toplevel_handle_v1 *zwlr_foreign_toplevel, const char *title)
 
static void toplevel_manager_handle_toplevel (void *data, struct zwlr_foreign_toplevel_manager_v1 *toplevel_manager, struct zwlr_foreign_toplevel_handle_v1 *zwlr_toplevel)
 
static void toplevel_manager_handle_finished (void *data, struct zwlr_foreign_toplevel_manager_v1 *toplevel_manager)
 

Variables

struct wl_list toplevel_list
 
static uint32_t global_id = 0
 
static const struct zwlr_foreign_toplevel_handle_v1_listener toplevel_impl
 
const struct zwlr_foreign_toplevel_manager_v1_listener toplevel_manager_impl
 

Detailed Description

License
BSD-3-Clause

Definition in file foreign_toplevel.c.

Macro Definition Documentation

◆ _POSIX_C_SOURCE

#define _POSIX_C_SOURCE   200112L

Definition at line 8 of file foreign_toplevel.c.

Function Documentation

◆ array_to_state()

static uint32_t array_to_state ( struct wl_array * array)
static

Definition at line 65 of file foreign_toplevel.c.

◆ copy_state()

static void copy_state ( struct toplevel_state * current,
struct toplevel_state * pending )
static

Definition at line 22 of file foreign_toplevel.c.

◆ toplevel_handle_app_id()

static void toplevel_handle_app_id ( void * data,
struct zwlr_foreign_toplevel_handle_v1 * zwlr_foreign_toplevel,
const char * title )
static

Definition at line 126 of file foreign_toplevel.c.

◆ toplevel_handle_closed()

static void toplevel_handle_closed ( void * data,
struct zwlr_foreign_toplevel_handle_v1 * zwlr_toplevel )
static

Definition at line 103 of file foreign_toplevel.c.

◆ toplevel_handle_done()

static void toplevel_handle_done ( void * data,
struct zwlr_foreign_toplevel_handle_v1 * zwlr_toplevel )
static

Definition at line 88 of file foreign_toplevel.c.

◆ toplevel_handle_output_enter()

static void toplevel_handle_output_enter ( void * data,
struct zwlr_foreign_toplevel_handle_v1 * zwlr_toplevel,
struct wl_output * wl_output )
static

Definition at line 34 of file foreign_toplevel.c.

◆ toplevel_handle_output_leave()

static void toplevel_handle_output_leave ( void * data,
struct zwlr_foreign_toplevel_handle_v1 * zwlr_toplevel,
struct wl_output * wl_output )
static

Definition at line 48 of file foreign_toplevel.c.

◆ toplevel_handle_state()

static void toplevel_handle_state ( void * data,
struct zwlr_foreign_toplevel_handle_v1 * zwlr_toplevel,
struct wl_array * state )
static

Definition at line 78 of file foreign_toplevel.c.

◆ toplevel_handle_title()

static void toplevel_handle_title ( void * data,
struct zwlr_foreign_toplevel_handle_v1 * zwlr_foreign_toplevel,
const char * title )
static

Definition at line 117 of file foreign_toplevel.c.

◆ toplevel_manager_handle_finished()

static void toplevel_manager_handle_finished ( void * data,
struct zwlr_foreign_toplevel_manager_v1 * toplevel_manager )
static

Definition at line 167 of file foreign_toplevel.c.

◆ toplevel_manager_handle_toplevel()

static void toplevel_manager_handle_toplevel ( void * data,
struct zwlr_foreign_toplevel_manager_v1 * toplevel_manager,
struct zwlr_foreign_toplevel_handle_v1 * zwlr_toplevel )
static

Definition at line 145 of file foreign_toplevel.c.

Variable Documentation

◆ global_id

uint32_t global_id = 0
static

Definition at line 32 of file foreign_toplevel.c.

◆ toplevel_impl

const struct zwlr_foreign_toplevel_handle_v1_listener toplevel_impl
static
Initial value:
= {
.title = toplevel_handle_title,
.app_id = toplevel_handle_app_id,
.output_enter = toplevel_handle_output_enter,
.output_leave = toplevel_handle_output_leave,
.state = toplevel_handle_state,
.done = toplevel_handle_done,
.closed = toplevel_handle_closed,
}

Definition at line 135 of file foreign_toplevel.c.

◆ toplevel_list

struct wl_list toplevel_list

Definition at line 20 of file foreign_toplevel.c.

◆ toplevel_manager_impl

const struct zwlr_foreign_toplevel_manager_v1_listener toplevel_manager_impl
Initial value:
= {
.toplevel = toplevel_manager_handle_toplevel,
.finished = toplevel_manager_handle_finished,
}

Definition at line 174 of file foreign_toplevel.c.