mirror of
https://github.com/swaywm/sway.git
synced 2025-11-29 06:59:46 -05:00
Use output_match_name_or_id() in apply_output_config_to_outputs()
This commit is contained in:
parent
04904ab9a5
commit
fcec581748
3 changed files with 11 additions and 5 deletions
|
|
@ -36,8 +36,12 @@
|
|||
#include <wlr/types/wlr_drm_lease_v1.h>
|
||||
#endif
|
||||
|
||||
static bool output_match_name_or_id(struct sway_output *output,
|
||||
bool output_match_name_or_id(struct sway_output *output,
|
||||
const char *name_or_id) {
|
||||
if (strcmp(name_or_id, "*") == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
char identifier[128];
|
||||
output_get_identifier(identifier, sizeof(identifier), output);
|
||||
return strcasecmp(identifier, name_or_id) == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue