|
wlmaker
|
#include "server.h"#include <libbase/libbase.h>#include <libbase/plist.h>#include <linux/input-event-codes.h>#include <stdlib.h>#include <wlr/backend.h>#include <wlr/types/wlr_viewporter.h>#include <wlr/types/wlr_cursor.h>#include <wlr/types/wlr_fractional_scale_v1.h>#include <wlr/types/wlr_data_control_v1.h>#include <wlr/types/wlr_data_device.h>#include <wlr/types/wlr_input_device.h>#include <wlr/types/wlr_output_layout.h>#include <wlr/types/wlr_primary_selection.h>#include <wlr/types/wlr_primary_selection_v1.h>#include <wlr/types/wlr_seat.h>#include <wlr/types/wlr_scene.h>#include "input/manager.h"#include "toolkit/toolkit.h"
Functions | |
| static void | _wlmaker_server_unclaimed_button_event_handler (struct wl_listener *listener_ptr, void *data_ptr) |
| static void | _wlmaker_server_handle_input_activity (struct wl_listener *listener_ptr, void *data_ptr) |
| static void | _wlmaker_server_handle_deactivate_task_list (struct wl_listener *listener_ptr, void *data_ptr) |
| static void | handle_request_set_selection (struct wl_listener *listener_ptr, void *data_ptr) |
| static void | handle_request_set_primary_selection (struct wl_listener *listener_ptr, void *data_ptr) |
| 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) |
| 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) |
Variables | |
| static const char * | seat_name_ptr = "seat0" |
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.
|
static |
Handles suggestions to deactivate the task list.
|
static |
Handles input activity: Resets the idle timer.
|
static |
Handles unclaimed button events: Right 'down' opens root menu.
|
static |
Approves a client's request to set the primary selection.
| listener_ptr | |
| data_ptr | Points to a struct wlr_seat_request_set_primary_selection_event. |
|
static |
Approves a client's request to set the clipboard selection.
| listener_ptr | |
| data_ptr | Points to a struct wlr_seat_request_set_selection_event. |
| void wlmaker_server_activate_task_list | ( | wlmaker_server_t * | server_ptr | ) |
Activates the task list.
| server_ptr |
| 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.
| config_dict_ptr | Configuration, as dictionary object. The server will keep a reference on it until destroyed. |
| files_ptr | Files handle. Must outlive the server. |
| style_ptr | Style. Must outlive the server. |
| options_ptr | Options for the server. The server expects the pointed area to outlive the server. |
| void wlmaker_server_destroy | ( | wlmaker_server_t * | server_ptr | ) |
Destroys the server handle, as created by wlmaker_server_create().
| server_ptr |
| 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.
| server_ptr |
|
static |
Name of the "seat".