[vlc-commits] [Git][videolan/vlc][master] 2 commits: qt: set `m_hasWayland` in `VideoWindowHandler`
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Jan 9 16:41:34 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
40eb6138 by Fatih Uzunoglu at 2025-01-09T16:07:57+00:00
qt: set `m_hasWayland` in `VideoWindowHandler`
- - - - -
dae15e99 by Fatih Uzunoglu at 2025-01-09T16:07:57+00:00
qt: do not adjust size in `VideoWindowHandler` with Wayland
`CompositorWayland::onSurfaceSizeChanged()` already adjusts
the size.
- - - - -
1 changed file:
- modules/gui/qt/maininterface/video_window_handler.cpp
Changes:
=====================================
modules/gui/qt/maininterface/video_window_handler.cpp
=====================================
@@ -30,6 +30,9 @@ VideoWindowHandler::VideoWindowHandler(qt_intf_t* intf, QObject *parent)
/* Does the interface resize to video size or the opposite */
m_autoresize = var_InheritBool( m_intf, "qt-video-autoresize" );
+ assert(qGuiApp);
+ m_hasWayland = qGuiApp->platformName().startsWith(QLatin1String("wayland"));
+
connect( this, &VideoWindowHandler::askVideoToResize,
this, &VideoWindowHandler::setVideoSize, Qt::QueuedConnection );
connect( this, &VideoWindowHandler::askVideoSetFullScreen,
@@ -100,7 +103,7 @@ void VideoWindowHandler::setVideoSize(unsigned int w, unsigned int h)
w = screen.width();
h = screen.height();
}
- else
+ else if (!m_hasWayland)
{
// Convert the size in logical pixels
w = qRound( (float)w / factor );
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/874925c0fbcabf7490c938fdcaefe03e3cb6337c...dae15e996aee610d97e35f836f1d6b0f98c1b3d3
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/874925c0fbcabf7490c938fdcaefe03e3cb6337c...dae15e996aee610d97e35f836f1d6b0f98c1b3d3
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list