diff options
author | axtloss <axtlos@disroot.org> | 2024-10-21 00:59:39 +0200 |
---|---|---|
committer | axtloss <axtlos@disroot.org> | 2024-10-21 00:59:39 +0200 |
commit | a8f67334b429492525c4b80685abb49196f96d1f (patch) | |
tree | e238c268ce4a64b2bb159efffea15e057e1f59fe | |
parent | d7ec784e5d69af9d9addf5ef95df5c40af3df478 (diff) | |
download | swaybg-a8f67334b429492525c4b80685abb49196f96d1f.tar.gz swaybg-a8f67334b429492525c4b80685abb49196f96d1f.tar.bz2 |
add monitor specificaion support in nirimaster
Diffstat (limited to '')
-rw-r--r-- | main.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -101,6 +101,14 @@ static struct wl_buffer *draw_buffer(const struct swaybg_output *output, cairo_surface_t *surface, uint32_t buffer_width, uint32_t buffer_height) { uint32_t bg_color = output->config->color ? output->config->color : 0x000000ff; + + if (strcmp(getenv("SWAYBG_SCREEN"), "MAIN") == 0 && output->height != 1080) { + return NULL; + } else if (strcmp(getenv("SWAYBG_SCREEN"), "SIDE") == 0 && output->height != 1920) { + return NULL; + } + + if (buffer_width == 1 && buffer_height == 1 && output->config->mode == BACKGROUND_MODE_SOLID_COLOR && output->state->single_pixel_buffer_manager) { |