ui: fix wayland requestActivate warning on device (#33054)

fix wayland requestActivate warning in fullscreen mode
pull/33058/head
Dean Lee 10 months ago committed by GitHub
parent 18c310addf
commit bd8dd65ce0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      selfdrive/ui/qt/qt_window.cc

@ -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());

Loading…
Cancel
Save