Drag & Drop of maximised Directory Opus Window often 'gets' the window in the background

Dear All,
just trying DO and I love it. However, I noticed one strange behaviour:

When I have the DO window maximised (Windows 11) and move the mouse to the top of the screen, click it, and then drag it (e.g. to move it to the second screen), then often (not always!) it actually moves the maximised window below it (e.g. Chrome or Outlook).

It only happens if I move the mouse to the top of the screen, not if I place it somewhere more centrally in the title bar. It is a bit as if the window/title bar would stop 1 pixel below the screen, so that actually the window below is grabbed.

Happens on both screens. I never had this with any other software. Windows 1124H, latest Directory Opus (new installation from yesterday).

Since I move my DO / File Explorer windows often between screens, and it's a no brainer to just move the mouse to the top of the screen instead of paying attention of placing it NOT there but still in the title bar, this is more annoying than I thought...
Kind Regards,
Andre

That's a Windows bug, not something we can do anything about.

I'm guessing you're using mixed DPI, where there are multiple screens with different DPIs, or the DPI has changed since Opus was last (re-)started. Windows has old bugs that were never fixed where it miscalculates the rectangles of windows in that situation.

Easy way to check if the bug affects you:

  • Maximize something like File Explorer.
  • Download Microsoft's DebugView
  • Run DebugView and maximize it, over the top of the maximized File Explorer window.
  • Move the mouse to the very top-right corner of the screen and click.

This should close DebugView, as it's the maximized window with a close button at the top-right, but on a mixed-DPI system it instead closes File Explorer underneath it.

Thanks a lot. I'll try that out if I have a bit of time. But even if it is a Windows bug, it is a bit curious that so far it affected (on my system) only Directory Opus, no other software.

Do the test above to prove it’s not just Opus. :slight_smile:

I think Task Scheduler and Event Viewer still do the same, if you don’t want to download DebugView. All Microsoft tools that Opus isn’t involved with.

Thanks for the quick replies!

Sorry, but for me it is indeed just Opus. Task Scheduler and also DebugView don't have that problem (at least I can't reproduce it on my computer).

I have now replicated this on a "different setup" (well, same laptop, but attached to two different monitors). Setup 1 had indeed two different screens (one 4k and one WQHD or so, with different Scale settings). Current setup has 2 monitors with different resolutions, but both are set to 100% Scale.

Next time I plug it off, I can check whether it's also there if I just use the laptop screen.

Best wishes,
Andre

If you've changed DPI, you need to use File > Exit Directory Opus and then restart it to get Opus to use the new DPI and avoid the problem.

(Same thing will affect other DPI-aware but not per-monitor-DPI-aware applications that were started before the DPI change, or on a mixed-DPI system.)

Avoiding the very edge/corner of the screen will work around the problem as well. The issue is that Windows has a bug that makes it miscalculate where applications are on screen, because it doesn't do the DPI conversion / rounding properly for the very edges of the screen. Windows effectively thinks some application windows are a pixel smaller than they really are in that situation.

...and many other threads.

The best solution is to avoid mixed DPI entirely, and reboot or logout (to ensure all apps are restarted) after changing the DPI even when keeping it the same on all screens. Windows mixed DPI mode has never worked well, and they seem to have no interest in fixing it.

Thanks a lot. Not blaming you...

Unfortunately, I can't avoid mixed DPI, the two screens are just too different, and with my aging eyes it's not really feasible to have the same setting for both. And I'm not buying a second 4k monitor because of this issue with Opus :wink:

You wrote "(Same thing will affect other DPI-aware but not per-monitor-DPI-aware applications". So in theory it would be possible to fix this problem in Opus by making it per-monitor-DPI-aware? Would of course be nice for me, but not pushing this, because it may affect only few people and may be quite work intense. At least it does adjust its size when moving between screens - I recently tried a file explorer alternative (can't remember the name) which probably wasn't DPI aware at all, so that it was fine on one screen, but completely wrong size on the other.

Thanks for all the help. I'll continue testing Opus, so far I love it, and hope I'll get used to not moving the mouse to the very edge.

It's on our list but extremely complex and time consuming to do, as the way Microsoft retrofitted this second type of DPI awareness to the API made it impossible to know which DPI something is being rendered for in too many contexts without a complete re-write of how everything is rendered/requested.

It'll probably happen one day, but not soon.

Even then, Windows is still full of issues in that mode, which means it is best avoided and not something we can make work well, even if we do the best we can within our own process.