mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04: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;
|
||||
|
||||
Display *display;
|
||||
int xkb_event_base;
|
||||
};
|
||||
|
||||
static int play_sample(struct impl *impl)
|
||||
|
|
@ -181,8 +180,7 @@ static int x11_connect(struct impl *impl, const char *name)
|
|||
major = XkbMajorVersion;
|
||||
minor = XkbMinorVersion;
|
||||
|
||||
if (!XkbQueryExtension(impl->display, NULL, &impl->xkb_event_base,
|
||||
NULL, &major, &minor)) {
|
||||
if (!XkbQueryExtension(impl->display, NULL, NULL, NULL, &major, &minor)) {
|
||||
pw_log_error("XkbQueryExtension() failed");
|
||||
return -EIO;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue