rustdesk icon indicating copy to clipboard operation
rustdesk copied to clipboard

The main interface cannot be displayed when using multiple monitors

Open SamGenTLEManKaka opened this issue 2 years ago • 27 comments

Bug Description

My laptop has an extended monitor, (the laptop's monitor is the main monitor) I open rustdesk's main interface on the extended monitor and remote others, then I finish remotely shutting down the software, I unplug the extended monitor and just use the laptop's Monitor, when I open the rustdesk software at this time, the main interface cannot be displayed on the main screen of the laptop. I guess it should be opened on the non-existent extended monitor.

How to Reproduce

Exiting rustdesk on the extended monitor, then unplugging the extended monitor and running the rustdesk software again can reproduce the problem stably.

Expected Behavior

When it runs again, it should correctly identify the monitor status and open it on the correct monitor.

Operating system(s) on local side and remote side

windwos10

RustDesk Version(s) on local side and remote side

1.2.3

Screenshots

none

Additional Context

No response

SamGenTLEManKaka avatar Oct 30 '23 08:10 SamGenTLEManKaka

@fufesou

rustdesk avatar Oct 30 '23 08:10 rustdesk

@SamGenTLEManKaka Thanks for your feedback.

But I cannot reproduce this issue.

Can you please give some screenshots of the display settings before and after you unplugging the extended monitor? Thx

fufesou avatar Oct 30 '23 09:10 fufesou

@fufesou Thanks for the reply! I have found many computers that can reproduce this problem stably. And if I want to really see the main interface of the software running, I have to plug the extended monitor back in, otherwise I can't use the software. Here is a screenshot of my configuration PS: i use sciter not flutter img_v2_216f8925-7b7d-4a3c-8fe0-2e28c4b9e9eg img_v2_9e6d6d69-8d72-40c8-9d62-2cf10340993g

SamGenTLEManKaka avatar Oct 31 '23 01:10 SamGenTLEManKaka

Thanks for your kind reply.

i use sciter not flutter

It must be the reason. We did not handle the position well in sciter version. I'll try fix it.

fufesou avatar Oct 31 '23 06:10 fufesou

In the mean time until a fix is out, what happens if you hover over the taskbar icon (dont click), once the preview window shows RustDesk, RIGHT click and say maximise or restore, does that flick it back to laptop monitor? May not work but we had a weird similar bug in a program we use, this was how we got around it.

DMSnz avatar Oct 31 '23 20:10 DMSnz

In the mean time until a fix is out, what happens if you hover over the taskbar icon (dont click), once the preview window shows RustDesk, RIGHT click and say maximise or restore, does that flick it back to laptop monitor? May not work but we had a weird similar bug in a program we use, this was how we got around it.

Thanks for the reply! Your approach can solve the problem!

SamGenTLEManKaka avatar Nov 01 '23 02:11 SamGenTLEManKaka

Getting the visible area of the screens requires some extra work.

This issue is not high priority.

  1. This issue is not a common one.
  2. We are currently working on the flutter version.

I will deal with this issue if more people give feedback.

fufesou avatar Nov 02 '23 10:11 fufesou

Agree

rustdesk avatar Nov 02 '23 10:11 rustdesk

Hi,

I have the same on my setup (like in the screenshot). It's:

  • Left: 3840*2160 at 225%
  • Right: 5120*1440 at 100%

rustdesk

Sometimes I can see a corner (when I did close the app on the left monitor), but it's completely gone when I close the app on the right (completely to the far right).

PS.: I can't fit a bigger monitor on my desk 😂 Almost got it to work on my side. Thanks!

PPS: I can Maximize it via the Windows Taskbar Icon, and it resettles itself... So no worries.... None of my friends or family have ever seen such a resolution 🥲

SpikySpam avatar Nov 03 '23 18:11 SpikySpam

PS: i use sciter not flutter

@SamGenTLEManKaka could you try flutter version?

rustdesk avatar Dec 03 '23 03:12 rustdesk

Same for us, dual monitor, the main GUI goes offscreen... Now is totally usable, is there a tweak to overcome this ?

AlcorSystem avatar Dec 13 '23 23:12 AlcorSystem

No idea if this can help.

https://answers.microsoft.com/en-us/windows/forum/all/program-open-in-task-bar-but-not-visible-on-screen/ef424c12-5f57-46eb-bb81-66563e284050

Or try modify %APPDATA%\RustDesk\config\RustDesk_local.toml by removing the line starting with wm_Main.

Another discussion https://www.reddit.com/r/rustdesk/comments/1ar98yt/cant_access_rust_desk_interface/

rustdesk avatar Feb 15 '24 07:02 rustdesk

Solutions

  • [ ] when storing postion, check postion against display coordinates, if it make sense, restore, otherwise use default pos.
  • [ ] saving displays information also, when restoring check if can match

rustdesk avatar Feb 15 '24 07:02 rustdesk

I am having the exact same problem, but with the accept connection window.

I need to go trough hops like couple of WIN+D (to desktop, out of desktop), ALT+SPACE to bring context menu, and then restore, move or WIN+UP_ARROW to maximize.

Some helpful links: https://superuser.com/questions/53585/how-to-move-windows-that-open-up-offscreen https://superuser.com/questions/1099093/move-off-screen-window-back-to-screen-on-windows-10 https://superuser.com/questions/1267176/recover-windows-10-opening-off-screen

Please improve these mechanisms.

NewEraCracker avatar Feb 25 '24 14:02 NewEraCracker

I think this https://github.com/rustdesk/rustdesk/pull/8075 fix the problem, please verify.

rustdesk avatar May 20 '24 08:05 rustdesk