This commit is contained in:
Mattias Eriksson 2018-04-28 23:49:47 +00:00 committed by GitHub
commit 33675fa90d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 267 additions and 1 deletions

View file

@ -117,6 +117,7 @@ sway_cmd cmd_input;
sway_cmd cmd_seat;
sway_cmd cmd_ipc;
sway_cmd cmd_kill;
sway_cmd cmd_lock;
sway_cmd cmd_layout;
sway_cmd cmd_log_colors;
sway_cmd cmd_mark;
@ -148,6 +149,9 @@ sway_cmd cmd_unmark;
sway_cmd cmd_workspace;
sway_cmd cmd_ws_auto_back_and_forth;
sway_cmd cmd_workspace_layout;
sway_cmd cmd_idle_timeout;
sway_cmd cmd_lock_timeout;
sway_cmd cmd_swaylock_command;
sway_cmd bar_cmd_activate_button;
sway_cmd bar_cmd_binding_mode_indicator;

View file

@ -305,6 +305,9 @@ struct sway_config {
enum sway_container_layout default_layout;
char *font;
int font_height;
uint32_t idle_timeout;
uint32_t lock_timeout;
char *swaylock_command;
// Flags
bool focus_follows_mouse;

8
include/sway/idle.h Normal file
View file

@ -0,0 +1,8 @@
#ifndef _SWAY_IDLE_H
#define _SWAY_IDLE_H
#include <sway/server.h>
void idle_setup_seat(struct sway_server *server, struct sway_seat *seat);
bool idle_init(struct sway_server *server);
void invoke_swaylock();
#endif

View file

@ -21,6 +21,7 @@ struct sway_server {
struct wlr_compositor *compositor;
struct wlr_data_device_manager *data_device_manager;
struct wlr_idle *idle;
struct sway_input_manager *input;