2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Improve screencast source choosing design.

This commit is contained in:
John Preston
2021-04-29 20:28:12 +04:00
parent 022c0a1327
commit a48649987e
12 changed files with 304 additions and 74 deletions

View File

@@ -484,6 +484,10 @@ QWidget *Panel::chooseSourceParent() {
return _window.get();
}
QString Panel::chooseSourceActiveDeviceId() {
return _call->screenSharingDeviceId();
}
rpl::lifetime &Panel::chooseSourceInstanceLifetime() {
return _window->lifetime();
}
@@ -492,6 +496,10 @@ void Panel::chooseSourceAccepted(const QString &deviceId) {
_call->switchToScreenSharing(deviceId);
}
void Panel::chooseSourceStop() {
_call->toggleVideo(false);
}
void Panel::initWindow() {
_window->setAttribute(Qt::WA_OpaquePaintEvent);
_window->setAttribute(Qt::WA_NoSystemBackground);