Skip to content

Commit

Permalink
ui: fix wayland requestActivate warning on device (#33054)
Browse files Browse the repository at this point in the history
fix wayland requestActivate warning in fullscreen mode
  • Loading branch information
deanlee authored Jul 24, 2024
1 parent 18c310a commit bd8dd65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion selfdrive/ui/qt/qt_window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ void setMainWindow(QWidget *w) {
wl_surface *s = reinterpret_cast<wl_surface*>(native->nativeResourceForWindow("surface", w->windowHandle()));
wl_surface_set_buffer_transform(s, WL_OUTPUT_TRANSFORM_270);
wl_surface_commit(s);
w->showFullScreen();

w->setWindowState(Qt::WindowFullScreen);
w->setVisible(true);

// ensure we have a valid eglDisplay, otherwise the ui will silently fail
void *egl = native->nativeResourceForWindow("egldisplay", w->windowHandle());
Expand Down

0 comments on commit bd8dd65

Please sign in to comment.