mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 18:36:11 +02:00
refact: Wayland, not support multiple displays (#8280)
* refact: Wayland, not support multiple displays Signed-off-by: fufesou <shuanglongchen@yeah.net> * refact: Wayland disable multiple for RemoteDesktop Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <shuanglongchen@yeah.net> Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
64d0fb17f7
commit
8fa611daed
3 changed files with 21 additions and 19 deletions
|
@ -467,8 +467,7 @@ class _RemoteToolbarState extends State<RemoteToolbar> {
|
|||
|
||||
toolbarItems.add(Obx(() {
|
||||
if (PrivacyModeState.find(widget.id).isEmpty &&
|
||||
pi.displaysCount.value > 1 &&
|
||||
!pi.isWayland) {
|
||||
pi.displaysCount.value > 1) {
|
||||
return _MonitorMenu(
|
||||
id: widget.id,
|
||||
ffi: widget.ffi,
|
||||
|
@ -2466,19 +2465,20 @@ class _DraggableShowHideState extends State<_DraggableShowHide> {
|
|||
),
|
||||
),
|
||||
)),
|
||||
if (!isMacOS) Obx(() => Offstage(
|
||||
offstage: isFullscreen.isFalse,
|
||||
child: TextButton(
|
||||
onPressed: () => widget.setMinimize(),
|
||||
child: Tooltip(
|
||||
message: translate('Minimize'),
|
||||
child: Icon(
|
||||
Icons.remove,
|
||||
size: iconSize,
|
||||
if (!isMacOS)
|
||||
Obx(() => Offstage(
|
||||
offstage: isFullscreen.isFalse,
|
||||
child: TextButton(
|
||||
onPressed: () => widget.setMinimize(),
|
||||
child: Tooltip(
|
||||
message: translate('Minimize'),
|
||||
child: Icon(
|
||||
Icons.remove,
|
||||
size: iconSize,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
)),
|
||||
)),
|
||||
TextButton(
|
||||
onPressed: () => setState(() {
|
||||
widget.show.value = !widget.show.value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue