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

ui: fix wayland requestActivate warning on device #33054

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented Jul 24, 2024

This PR addresses the Wayland does not support QWindow::requestActivate() warning that occurs when attempting to show window in fullscreen mode, This warning can appear during UI startup, dialog popups, and other similar actions:

2024-07-24_12-54

Changes:

For Wayland, instead of using showFullScreen(), we manually set the window state to fullscreen and ensure it is visible. This avoids any internal calls to requestActivate() that be triggered by showFullScreen() which is unsupported on Wayland.

@github-actions github-actions bot added the ui label Jul 24, 2024
Copy link
Contributor

Thanks for contributing to openpilot! In order for us to review your PR as quickly as possible, check the following:

  • Convert your PR to a draft unless it's ready to review
  • Read the contributing docs
  • Before marking as "ready for review", ensure:
    • the goal is clearly stated in the description
    • all the tests are passing
    • the change is something we merge
    • include a route or your device' dongle ID if relevant

@adeebshihadeh
Copy link
Contributor

trigger-jenkins

@adeebshihadeh adeebshihadeh merged commit bd8dd65 into commaai:master Jul 24, 2024
16 of 18 checks passed
@deanlee deanlee deleted the ui_fix_wayland_warning branch July 24, 2024 16:46
Edison-CBS pushed a commit to Edison-CBS/openpilot that referenced this pull request Sep 15, 2024
fix wayland requestActivate warning in fullscreen mode
old-commit-hash: bd8dd65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants