mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-26 21:58:08 +01:00
config/output: Remove apply_output_config
This commit is contained in:
parent
3b419020a3
commit
56e97b7d60
2 changed files with 0 additions and 32 deletions
|
@ -690,8 +690,6 @@ struct output_config *new_output_config(const char *name);
|
||||||
|
|
||||||
void merge_output_config(struct output_config *dst, struct output_config *src);
|
void merge_output_config(struct output_config *dst, struct output_config *src);
|
||||||
|
|
||||||
bool apply_output_config(struct output_config *oc, struct sway_output *output);
|
|
||||||
|
|
||||||
bool apply_output_configs(struct matched_output_config *configs,
|
bool apply_output_configs(struct matched_output_config *configs,
|
||||||
size_t configs_len, bool test_only);
|
size_t configs_len, bool test_only);
|
||||||
|
|
||||||
|
|
|
@ -568,36 +568,6 @@ static bool finalize_output_config(struct output_config *oc, struct sway_output
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool apply_output_config(struct output_config *oc, struct sway_output *output) {
|
|
||||||
if (output == root->fallback_output) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct wlr_output_state pending = {0};
|
|
||||||
queue_output_config(oc, output, &pending);
|
|
||||||
|
|
||||||
sway_log(SWAY_DEBUG, "Committing output %s", output->wlr_output->name);
|
|
||||||
if (!wlr_output_commit_state(output->wlr_output, &pending)) {
|
|
||||||
// Failed to commit output changes, maybe the output is missing a CRTC.
|
|
||||||
// Leave the output disabled for now and try again when the output gets
|
|
||||||
// the mode we asked for.
|
|
||||||
sway_log(SWAY_ERROR, "Failed to commit output %s", output->wlr_output->name);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!finalize_output_config(oc, output)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reconfigure all devices, since input config may have been applied before
|
|
||||||
// this output came online, and some config items (like map_to_output) are
|
|
||||||
// dependent on an output being present.
|
|
||||||
input_manager_configure_all_input_mappings();
|
|
||||||
// Reconfigure the cursor images, since the scale may have changed.
|
|
||||||
input_manager_configure_xcursor();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool test_output_config(struct output_config *oc, struct sway_output *output) {
|
bool test_output_config(struct output_config *oc, struct sway_output *output) {
|
||||||
if (output == root->fallback_output) {
|
if (output == root->fallback_output) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue