mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pipewire: module-x11-bell: remove unnecessary member
`xkb_event_base` is only ever set and never read. Remove it.
This commit is contained in:
parent
45bd8532eb
commit
7c70c4e383
1 changed files with 1 additions and 3 deletions
|
|
@ -91,7 +91,6 @@ struct impl {
|
||||||
struct spa_hook module_listener;
|
struct spa_hook module_listener;
|
||||||
|
|
||||||
Display *display;
|
Display *display;
|
||||||
int xkb_event_base;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int play_sample(struct impl *impl)
|
static int play_sample(struct impl *impl)
|
||||||
|
|
@ -181,8 +180,7 @@ static int x11_connect(struct impl *impl, const char *name)
|
||||||
major = XkbMajorVersion;
|
major = XkbMajorVersion;
|
||||||
minor = XkbMinorVersion;
|
minor = XkbMinorVersion;
|
||||||
|
|
||||||
if (!XkbQueryExtension(impl->display, NULL, &impl->xkb_event_base,
|
if (!XkbQueryExtension(impl->display, NULL, NULL, NULL, &major, &minor)) {
|
||||||
NULL, &major, &minor)) {
|
|
||||||
pw_log_error("XkbQueryExtension() failed");
|
pw_log_error("XkbQueryExtension() failed");
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue