Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/next.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
- Fixed a crash when quitting or reloading while a `Loader` was still loading asynchronously.
- Fixed future `Socket` connection attempts after a failed connection attempt.
- Fixed Open wifi networks showing as Unknown security.
- Fixed a crash when capturing screencopy with a null screen.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ IccOutputSourceManager* IccOutputSourceManager::instance() {
}

ScreencopyContext* IccOutputSourceManager::captureOutput(QScreen* screen, bool paintCursors) {
if (screen == nullptr) return nullptr;

auto* waylandScreen = dynamic_cast<QtWaylandClient::QWaylandScreen*>(screen->handle());
if (!waylandScreen) return nullptr;

Expand Down
2 changes: 2 additions & 0 deletions src/wayland/screencopy/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ namespace qs::wayland::screencopy {

ScreencopyContext* ScreencopyManager::createContext(QObject* object, bool paintCursors) {
if (auto* screen = qobject_cast<QuickshellScreenInfo*>(object)) {
if (screen->screen == nullptr) return nullptr;

#if SCREENCOPY_ICC
{
auto* manager = icc::IccOutputSourceManager::instance();
Expand Down
1 change: 1 addition & 0 deletions src/wayland/screencopy/wlr_screencopy/wlr_screencopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ WlrScreencopyManager* WlrScreencopyManager::instance() {

ScreencopyContext*
WlrScreencopyManager::captureOutput(QScreen* screen, bool paintCursors, QRect region) {
if (screen == nullptr) return nullptr;
if (!dynamic_cast<QtWaylandClient::QWaylandScreen*>(screen->handle())) return nullptr;
return new WlrScreencopyContext(this, screen, paintCursors, region);
}
Expand Down
Loading