fuhsjr00 / bug.n

Tiling Window Manager for Windows
GNU General Public License v3.0
3.35k stars 214 forks source link

Multiple monitor positioning issue or config #238

Open yoghurt-x86 opened 4 years ago

yoghurt-x86 commented 4 years ago

The tool works great on my main display, but if i try to move a window to my secondary display it messes up the position of the window.

I have included screenshots below: Only using main display: 1

After using Win Shift . to move the explorer to the other display results in: 2

My screen layout looks like this: 3

I have a 4k monitor with 125% scaling as my main monitor. And a smaller 1080p with 100% scaling as a secondary monitor.

This config in %appdata%/Roaming/bug.n/Config.ini was generated by bug.n: The issue might just be that i don't know how to configure my monitors correctly.

; bug.n - tiling window management
; @version 9.0.2

Monitor_#1_aView_#2=2
View_#1_#1_layout_#2=3
View_#1_#1_layoutMFact=0.500000
Monitor_#2_aView_#2=2
Monitor_#2_showBar=0
View_#2_#1_layout_#2=2
View_#2_#1_layoutGapWidth=2

Thanks for reading!

yoghurt-x86 commented 4 years ago

The development version has the same behavior The misplaced explorer window says the following:

ID: 0x3027c
class:  CabinetWClass
title:  src
process:    Explorer.EXE [5152]
style:  0x14CF0000
metrics:    x: 4359, y: -2023, width: 2544, height: 2028
tags:   1

Config_rule=CabinetWClass;src;;1;2;1;0;1;0;
joten commented 4 years ago

Sadly, there is no option for setting the monitor configuration. It is a bug regarding display scaling.

yoghurt-x86 commented 4 years ago

Thanks, Setting the scaling to be 100% on all monitors fixes it.

nhumrich commented 4 years ago

I have a similar issue. All my monitors are set to 100%. Here is my layout: image

Display 1 is turned off. The issue is that bug.n seems to think that both monitors 2 and 4 live on the same monitor. So as I switch between displays 2 and 4 with bugn, all those windows are on monitor 2.

MiuKaShi commented 4 years ago

This solution may be useful for high DPI (different scaling) users Right-click bug.n --> select Properties --> select Compatibility --> select Change the high DPI setting --> tick on override high DPI scaling behavior --> Scaling performed by: Application then save settings and restart bug.n. This issue should be solved.