diff options
| author | Guido Cella <guido@guidocella.xyz> | 2020-12-19 12:18:00 +0100 | 
|---|---|---|
| committer | Guido Cella <guido@guidocella.xyz> | 2020-12-19 12:26:14 +0100 | 
| commit | ee5bd9a643cff9cceb8a34084da8f0657dc54359 (patch) | |
| tree | 0239358ae99ed1dc67860d3259743263934a0082 /dwl.c | |
| parent | d9ab75721af57ad6b19cb167d7e762b5496a275b (diff) | |
fix temporarily disabling a single monitor
The code in this else completely freezes my system when I run the
swayidle command to replicate xset dpms force off. No idea if it works
on multiple monitors, but for now avoid running when there's 1 monitor.
Also remove the comment with the function name in sway.
Diffstat (limited to 'dwl.c')
| -rw-r--r-- | dwl.c | 3 | 
1 files changed, 1 insertions, 2 deletions
| @@ -1456,7 +1456,6 @@ outputmgrapply(struct wl_listener *listener, void *data)  	outputmgrapplyortest(config, false);  } -// apply_output_config  void  outputmgrapplyortest(struct wlr_output_configuration_v1 *config, bool test)  { @@ -1481,7 +1480,7 @@ outputmgrapplyortest(struct wlr_output_configuration_v1 *config, bool test)  					config_head->state.x, config_head->state.y);  			wlr_output_set_transform(wlr_output, config_head->state.transform);  			wlr_output_set_scale(wlr_output, config_head->state.scale); -		} else { +		} else if (wl_list_length(&mons) > 1) {  			Monitor *m;  			wl_list_for_each(m, &mons, link) {  				if (m->wlr_output->name == wlr_output->name) { | 
