Skip to content

Commit

Permalink
Fix cursor_mode checks in screencast.c
Browse files Browse the repository at this point in the history
  • Loading branch information
columbarius authored and emersion committed Nov 6, 2020
1 parent 24bc68f commit f0e1de0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/screencast/screencast.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ static int method_screencast_select_sources(sd_bus_message *msg, void *data,
} else if (strcmp(key, "cursor_mode") == 0) {
uint32_t cursor_mode;
sd_bus_message_read(msg, "v", "u", &cursor_mode);
if (cursor_mode & (1<<HIDDEN)) {
if (cursor_mode & HIDDEN) {
cursor_embedded = false;
}
if (cursor_mode & (1<<METADATA)) {
if (cursor_mode & METADATA) {
logprint(ERROR, "dbus: unsupported cursor mode requested, cancelling");
goto error;
}
Expand Down

0 comments on commit f0e1de0

Please sign in to comment.