mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-14 04:25:22 +02:00
screensharing: remove unsupported options for wayland
https://git.jami.net/savoirfairelinux/jami-daemon/-/issues/13 Change-Id: I177104e8b2faabd356293fb704372918d7e5969a
This commit is contained in:
parent
e46a123609
commit
b4b1cda9e6
3 changed files with 9 additions and 2 deletions
|
@ -123,13 +123,13 @@ Control {
|
|||
"Name": JamiStrings.shareScreen,
|
||||
"IconSource": JamiResources.laptop_black_24dp_svg
|
||||
});
|
||||
if (Qt.platform.os.toString() !== "osx") {
|
||||
if (Qt.platform.os.toString() !== "osx" && !UtilsAdapter.isWayland()) {
|
||||
shareModel.append({
|
||||
"Name": JamiStrings.shareWindow,
|
||||
"IconSource": JamiResources.window_black_24dp_svg
|
||||
});
|
||||
}
|
||||
if (Qt.platform.os.toString() !== "windows") {
|
||||
if (Qt.platform.os.toString() !== "windows" && !UtilsAdapter.isWayland()) {
|
||||
// temporarily disable for windows
|
||||
shareModel.append({
|
||||
"Name": JamiStrings.shareScreenArea,
|
||||
|
|
|
@ -894,3 +894,9 @@ UtilsAdapter::createDummyImage() const
|
|||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
bool
|
||||
UtilsAdapter::isWayland() const
|
||||
{
|
||||
return !qEnvironmentVariableIsEmpty("WAYLAND_DISPLAY");
|
||||
}
|
||||
|
|
|
@ -162,6 +162,7 @@ public:
|
|||
#ifdef ENABLE_TESTS
|
||||
Q_INVOKABLE QString createDummyImage() const;
|
||||
#endif
|
||||
Q_INVOKABLE bool isWayland() const;
|
||||
Q_SIGNALS:
|
||||
void debugMessageReceived(const QString& message);
|
||||
void changeFontSize();
|
||||
|
|
Loading…
Add table
Reference in a new issue