wlmaker
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
server.h File Reference
#include <libbase/libbase.h>
#include <libbase/plist.h>
#include <stdbool.h>
#include <stdint.h>
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/types/wlr_data_control_v1.h>
#include <wlr/types/wlr_data_device.h>
#include <wlr/types/wlr_primary_selection_v1.h>
#include <wlr/types/wlr_seat.h>
#include "input/manager.h"
#include "backend/backend.h"
#include "config.h"
#include "corner.h"
#include "cursor.h"
#include "files.h"
#include "icon_manager.h"
#include "input_observation.h"
#include "idle.h"
#include "layer_shell.h"
#include "lock_mgr.h"
#include "root_menu.h"
#include "subprocess_monitor.h"
#include "toolkit/toolkit.h"
#include "xdg_decoration.h"
#include "xdg_shell.h"
#include "xwl.h"
Include dependency graph for server.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wlmaker_server_options_t
 
struct  _wlmaker_server_t
 

Typedefs

typedef struct _wlmaker_server_t wlmaker_server_t
 

Functions

wlmaker_server_twlmaker_server_create (bspl_dict_t *config_dict_ptr, wlmaker_files_t *files_ptr, const wlmaker_config_style_t *style_ptr, const wlmaker_server_options_t *options_ptr)
 
void wlmaker_server_destroy (wlmaker_server_t *server_ptr)
 
void wlmaker_server_activate_task_list (wlmaker_server_t *server_ptr)
 
struct wlr_output * wlmaker_server_get_output_at_cursor (wlmaker_server_t *server_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.

Typedef Documentation

◆ wlmaker_server_t

A handle for a wlmaker server.

Function Documentation

◆ wlmaker_server_activate_task_list()

void wlmaker_server_activate_task_list ( wlmaker_server_t server_ptr)

Activates the task list.

Parameters
server_ptr

◆ wlmaker_server_create()

wlmaker_server_t * wlmaker_server_create ( bspl_dict_t *  config_dict_ptr,
wlmaker_files_t files_ptr,
const wlmaker_config_style_t style_ptr,
const wlmaker_server_options_t options_ptr 
)

Creates the server and initializes all needed sub-modules.

Parameters
config_dict_ptrConfiguration, as dictionary object. The server will keep a reference on it until destroyed.
files_ptrFiles handle. Must outlive the server.
style_ptrStyle. Must outlive the server.
options_ptrOptions for the server. The server expects the pointed area to outlive the server.
Returns
The server handle or NULL on failure. The handle must be freed by calling wlmaker_server_destroy().

◆ wlmaker_server_destroy()

void wlmaker_server_destroy ( wlmaker_server_t server_ptr)

Destroys the server handle, as created by wlmaker_server_create().

Parameters
server_ptr

◆ wlmaker_server_get_output_at_cursor()

struct wlr_output * wlmaker_server_get_output_at_cursor ( wlmaker_server_t server_ptr)

Looks up which output serves the current cursor coordinates and returns that.

Parameters
server_ptr
Returns
Pointer to the output at the seat's cursor position.