mirror of
https://github.com/obsproject/obs-studio
synced 2024-10-23 08:01:43 +00:00
libobs: Open a separate X11 connection for hotkeys
Qt will mask certain input events. In order to avoid them masking things like mouse button events we open a new display here. Fixes #4843
This commit is contained in:
parent
f09137a2e0
commit
bcb04bb800
|
@ -828,7 +828,8 @@ static inline void registerMouseEvents(struct obs_core_hotkeys *hotkeys)
|
|||
|
||||
static bool obs_nix_x11_hotkeys_platform_init(struct obs_core_hotkeys *hotkeys)
|
||||
{
|
||||
Display *display = obs_get_nix_platform_display();
|
||||
// Open a new X11 connection here, this avoids Qt masking events we care about.
|
||||
Display *display = XOpenDisplay(NULL);
|
||||
if (!display)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue