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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user