mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-05 06:47:12 -04:00
Use NULL
This commit is contained in:
parent
f2ba08b262
commit
6971b00e1b
2 changed files with 2 additions and 2 deletions
|
|
@ -2573,7 +2573,7 @@ void set_value_default() {
|
||||||
config.unfocused_opacity = unfocused_opacity;
|
config.unfocused_opacity = unfocused_opacity;
|
||||||
|
|
||||||
/* Tablet */
|
/* Tablet */
|
||||||
config.tablet_output_name = strdup("");
|
config.tablet_output_name = NULL;
|
||||||
|
|
||||||
memcpy(config.shadowscolor, shadowscolor, sizeof(shadowscolor));
|
memcpy(config.shadowscolor, shadowscolor, sizeof(shadowscolor));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ void createtablet(struct wlr_input_device *device) {
|
||||||
send_events_mode);
|
send_events_mode);
|
||||||
wlr_cursor_attach_input_device(cursor, device);
|
wlr_cursor_attach_input_device(cursor, device);
|
||||||
// Map tablet to specific monitor if configured
|
// Map tablet to specific monitor if configured
|
||||||
if (config.tablet_output_name[0] != '\0') {
|
if (config.tablet_output_name) {
|
||||||
Monitor *target_monitor = find_monitor_by_name(config.tablet_output_name);
|
Monitor *target_monitor = find_monitor_by_name(config.tablet_output_name);
|
||||||
if (target_monitor) {
|
if (target_monitor) {
|
||||||
wlr_log(WLR_INFO, "Mapping input to output for device: %s", config.tablet_output_name);
|
wlr_log(WLR_INFO, "Mapping input to output for device: %s", config.tablet_output_name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue