diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-09-15 04:22:00 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-09-15 04:22:00 +0200 |
commit | f6f8fdb33c630973cc0cc8c1f4f92efa6e4cb7c8 (patch) | |
tree | fce41200c196e909a648b18a56140ceaf276ac92 /src/damage.c | |
parent | f53d7b30b1afab466257fee3d3a3823cff3ff2ad (diff) |
Portal: sync capture to frame update
Diffstat (limited to 'src/damage.c')
-rw-r--r-- | src/damage.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/damage.c b/src/damage.c index 168ed6b..868a2e6 100644 --- a/src/damage.c +++ b/src/damage.c @@ -130,8 +130,10 @@ bool gsr_damage_set_target_monitor(gsr_damage *self, const char *monitor_name) { } memset(&self->monitor, 0, sizeof(self->monitor)); - if(!get_monitor_by_name(self->egl, GSR_CONNECTION_X11, monitor_name, &self->monitor)) - fprintf(stderr, "gsr warning: gsr_damage_set_target_monitor: failed to find monitor: %s\n", monitor_name); + if(strcmp(monitor_name, "screen") != 0 && strcmp(monitor_name, "screen-direct") != 0 && strcmp(monitor_name, "screen-direct-force") != 0) { + if(!get_monitor_by_name(self->egl, GSR_CONNECTION_X11, monitor_name, &self->monitor)) + fprintf(stderr, "gsr warning: gsr_damage_set_target_monitor: failed to find monitor: %s\n", monitor_name); + } if(self->window) XSelectInput(self->egl->x11.dpy, self->window, 0); |