mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-12-23 01:59:49 +01:00
Fix cursor_mode checks in screencast.c
This commit is contained in:
parent
24bc68f0f2
commit
f0e1de02f4
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue