Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TileManualPlacement doesn't apply to second monitor/desk #1043

Open
Athanasius opened this issue Jul 4, 2024 · 4 comments
Open

TileManualPlacement doesn't apply to second monitor/desk #1043

Athanasius opened this issue Jul 4, 2024 · 4 comments
Labels
type:bug Something's broken!

Comments

@Athanasius
Copy link

Upfront Information

Please provide the following information by running the command and providing
the output.

  • Fvwm3 version (run: fvwm3 --version): 1.1.0 (compiled from source myself using the git tag)

  • Linux distribution or BSD name/version: Debian bookworm (which is on fvwm3 v1.0.6, hence compiling from source)

  • Platform (run: uname -sp): Linux unknown

Expected Behaviour

I'm converting over from an old fvwm2 configuration, and ended up starting from scratch so as to not be polluted by old/deprecated things. I'm trying to get window placement working how I want it to. I'm using ~/.fvwm/config as the initial configuration file. That then reads ~/.fvwm/conf.d/common first, which is where this configuration lies. It also then reads in ~/.fvwm/conf.d/monitor-left and ~/.fvwm/conf.d/monitor-right. These last two files should only contain configuration specific to each monitor, i.e. mostly startup items.

I now have Style "*" TileManualPlacement in common, which I expect to cause that placement scheme to be used for all windows that don't otherwise have a geometry/placement specified.

Actual Behaviour

It appears to be working fine on the left monitor (where desk 0 is used), but appears to have no effect on the right one (where desk 1 is used). Instead all new windows are placed as if there were no windows currently displaying in that Desk+Page. They even ignore any window just created via the same method, i.e. menu item that performs Exec exec xterm.

Enabling logging

There is no new logging as I place windows. Nothing earlier looks relevant. I did check this immediately after fvwm3 first started and the behaviour was the same, i.e. this wasn't caused by a Restart. This is the log file, which does include some restarts since as I was trying other options and addressing a need to use PositionPlacement for ssh-askpass-fullscreen.

fvwm3-output.log

Steps to Reproduce

How can the problem be reproduced? For this, the following is helpful:

  • Reduce the problem to the smallest fvwm configuration example (where
    possible). Start with a blank config file (fvwm3 -f/dev/null) and go from
    there.

    I'll get back to you on this point, but see the attached configuration. It's possible I'm misunderstanding something about the fvwm3 paradigm for multiple monitors, with the ability to move/drag windows between them, i.e. using two desks when perhaps a single one would work.

  • Does the problem also happen with Fvwm2? No, I was using Style "*" SmartPlacement there, and it did work.

Include your configuration with this issue.

Athanasius_github_miggy_org-fvwm3_configs.tar.gz

The .XDGMenu file is just menus, as produced by the Module FvwmPerl -l fvwm-menu-desktop-config.fpl window.

Does Fvwm3 crash?

No.

Extra Information

As I said, this is a wholly new configuration, and I might be misunderstanding, and thus misconfiguring, something to do with multiple monitors but single X11 screen. I'm using this:

xrandr --output DP-4 --mode 2560x1440 --rate 144.00 --output DP-2 --mode 2560x1440 --rate 143.91 --right-of DP-4

to get the monitors in the correct configuration/layout. So, DP-4 is the left monitor, and DP-2 the right.

  • Attach $HOME/.fvwm/fvwm3-output.log from the step above. - Attached in that section.
@Athanasius Athanasius added the type:bug Something's broken! label Jul 4, 2024
@Athanasius
Copy link
Author

OK, reproduced it with as minimal a configuration as possible (whilst ensuring I could still interact with things as needed):

Athanasius_github_miggy_org-fvwm3_configs-1043-minimal.tar.gz

This still exhibits the issue. Opening a bunch of XTerm using the menu works fine on the left hand monitor, they get autotiled until there's no room, then it's manual placement. But on the right monitor they all go to the same position, all the way left and just under the FvwmPager for Desk1 on that monitor.

@somiaj
Copy link
Collaborator

somiaj commented Oct 15, 2024

I can confirm this bug with the default-config. I have also ran into another bug with MinOverlapPlacement. The bug I see is when using DesktopConfiguration per-monitor, the placement works fine if both my monitors are on the same desktop, but it fails on my second monitor (stacking all windows in top/left corner) if the monitors are on different virtual destkops.

Seems there is some strange interaction between the placement methods and the RandR per monitor setup that probably needs to be worked out.

@Athanasius
Copy link
Author

I have also ran into another bug with MinOverlapPlacement. The bug I see is when using DesktopConfiguration per-monitor, the placement works fine if both my monitors are on the same desktop, but it fails on my second monitor (stacking all windows in top/left corner) if the monitors are on different virtual destkops.

Seems there is some strange interaction between the placement methods and the RandR per monitor setup that probably needs to be worked out.

If this is the same bug that I also see, then it's that on startup it looks like all the second monitor windows are in the top-left (so, 0, 0) page of the second desk, but it's just a visual artefact. As soon as I change page within that second desk everything starts displaying correctly again. Specifically my second desk windows are a pair of XTerms that should be in middle-top, and when I use a keybind to go to middle-bottom (this is 3x2 pages), it displays correctly.

Really this should be in a separate bug report though.

@Athanasius
Copy link
Author

To make it clearer what's happening, here's how my second monitor/desk pager looks initially:
fvwm3-2nd-monitor-and-desk-incorrect-pager

And this is how it looks after using keybind to move down one page. This is how it should look, other than it should be highlighting the top-middle page as the focused one at startup obviously:
fvwm3-2nd-monitor-and-desk-correct-pager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something's broken!
Projects
None yet
Development

No branches or pull requests

2 participants