mirror of
https://github.com/swaywm/sway.git
synced 2026-04-19 06:46:40 -04:00
Don't ignore initialisation errors
server_init ignores all errors. In practice, theses result in a segfault, potentially much later and losing any unsaved work. Properly handle initialisation errors and bail immediately.
This commit is contained in:
parent
909a2ddb5f
commit
fc13bd2f77
5 changed files with 222 additions and 23 deletions
|
|
@ -176,7 +176,7 @@ void handle_new_output(struct wl_listener *listener, void *data);
|
|||
|
||||
void handle_idle_inhibitor_v1(struct wl_listener *listener, void *data);
|
||||
void handle_layer_shell_surface(struct wl_listener *listener, void *data);
|
||||
void sway_session_lock_init(void);
|
||||
bool sway_session_lock_init(void);
|
||||
void sway_session_lock_add_output(struct sway_session_lock *lock,
|
||||
struct sway_output *output);
|
||||
bool sway_session_lock_has_surface(struct sway_session_lock *lock,
|
||||
|
|
|
|||
|
|
@ -162,7 +162,7 @@ void workspace_squash(struct sway_workspace *workspace);
|
|||
void workspace_move_to_output(struct sway_workspace *workspace,
|
||||
struct sway_output *output);
|
||||
|
||||
void sway_ext_workspace_init(void);
|
||||
bool sway_ext_workspace_init(void);
|
||||
void sway_ext_workspace_output_enable(struct sway_output *output);
|
||||
void sway_ext_workspace_output_disable(struct sway_output *output);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue