Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Ubuntu 24.04 with Qt 6 #2478

Open
1 of 4 tasks
bear101 opened this issue Nov 3, 2024 · 3 comments
Open
1 of 4 tasks

Support Ubuntu 24.04 with Qt 6 #2478

bear101 opened this issue Nov 3, 2024 · 3 comments
Assignees

Comments

@bear101
Copy link
Contributor

bear101 commented Nov 3, 2024

Description

FFmpeg now builds on Ubuntu 24 but WebRTC still cannot. This is a continuation of Pull-request: #2470

Push-to-talk keys are not working in Qt 6. Hotkeys relies on QX11Info which is unavailable in Qt 6.

Checkout MainWindow::enableHotKey() and MainWindow::disableHotKey() where code needs to be replaced:

Display* display = QX11Info::display();
Window x11window = QX11Info::appRootWindow();

QX11Info::display() can most likely be replaced by this:

Display* display = XOpenDisplay(nullptr)

However, I cannot find a substitute for QX11Info::appRootWindow().

The source code for the original functions in QX11Info can be found here.

Application

  • qtTeamTalk
  • TeamTalkAndroid
  • iTeamTalk
  • TeamTalkServer
@bear101 bear101 self-assigned this Nov 3, 2024
@bear101 bear101 added this to the TeamTalk v5.18 milestone Nov 3, 2024
@bear101
Copy link
Contributor Author

bear101 commented Nov 21, 2024

@CoBC do you have any idea how we can replace QX11Info::appRootWindow()? It is required for hotkeys using Qt 6.

@CoBC
Copy link
Contributor

CoBC commented Nov 22, 2024 via email

@CoBC
Copy link
Contributor

CoBC commented Dec 6, 2024

@bear101 It seams we can replace:

Window x11window = QX11Info::appRootWindow();

By:

Window x11window = RootWindow(display, DefaultScreen(display));

However global shortcuts only work in TT window and not outside of TT :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants