wlmaker
Loading...
Searching...
No Matches
Macros | Functions
xdg_shell.c File Reference
#include "xdg_shell.h"
#include <libbase/libbase.h>
#include <stdlib.h>
#include <wayland-util.h>
#include <wlr/version.h>
#include "toolkit/toolkit.h"
#include "xdg_popup.h"
#include "xdg_toplevel.h"
Include dependency graph for xdg_shell.c:

Functions

static void handle_destroy (struct wl_listener *listener_ptr, void *data_ptr)
 
static void handle_new_surface (struct wl_listener *listener_ptr, void *data_ptr)
 
wlmaker_xdg_shell_twlmaker_xdg_shell_create (wlmaker_server_t *server_ptr)
 
void wlmaker_xdg_shell_destroy (wlmaker_xdg_shell_t *xdg_shell_ptr)
 

Detailed Description

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ handle_destroy()

void handle_destroy ( struct wl_listener *  listener_ptr,
void *  data_ptr 
)
static

Event handler for the destroy signal raised by wlr_xdg_shell.

Parameters
listener_ptr
data_ptr

◆ handle_new_surface()

void handle_new_surface ( struct wl_listener *  listener_ptr,
void *  data_ptr 
)
static

Event handler for the new_surface signal raised by wlr_xdg_shell.

Parameters
listener_ptr
data_ptr

◆ wlmaker_xdg_shell_create()

wlmaker_xdg_shell_t * wlmaker_xdg_shell_create ( wlmaker_server_t server_ptr)

Creates an XDG shell server handler.

Parameters
server_ptr
Returns
The XDG Shell server handler or NULL on error.

◆ wlmaker_xdg_shell_destroy()

void wlmaker_xdg_shell_destroy ( wlmaker_xdg_shell_t xdg_shell_ptr)

Destroys the XDG Shell server handler.

Parameters
xdg_shell_ptr