-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Comments
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. |
I can confirm this bug with the default-config. I have also ran into another bug with 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, Really this should be in a separate bug report though. |
@Athanasius Try the patch in the js/placement-fix branch. This fixes the issue I was having. It seems that initially the Let me know if this also fixes your issue. |
Now all my windows are opening on my primary monitor, rather than a subset of them on the secondary. I'll re-run this test with a pure |
@somiaj Yup, even with a pure compile and install of I'm definitely running that version, I uninstalled the debian package and: 10:10:33 0$ ps fx | grep fvwm3
98976 ? S 0:00 \_ fvwm3 --verbose -f /home/users/athan/.fvwm/config
101807 pts/7 S+ 0:00 | \_ grep fvwm3
athan@emilia:~ (main);
10:12:13 0$ ls -l /proc/98976/exe
lrwxrwxrwx 1 athan athan 0 Oct 20 10:10 /proc/98976/exe -> /usr/local/bin/fvwm3*
10:12:15 0$ ls -l /usr/local/bin/fvwm3
-rwxr-xr-x 1 root staff 4450464 Oct 20 10:09 /usr/local/bin/fvwm3*
athan@emilia:~ (main);
10:12:35 0$ /usr/local/bin/fvwm3 --version
fvwm3 1.1.1 (1.1.0-94-g14e48d350-dirty) |
I'm investigating this:
which is likely screwing with my configuration working properly. With the Debian package gone, and definitely using the /usr/local/bin/ version I'm not sure why it's looking in those paths. |
OK, a This also has the side effect that my two monitors are now in lock-step for paging around, rather than being independent. |
And to confirm, using current |
I don't quite follow, you may have some other issues going on (such as your binary in /usr/local trying to find something in /usr). My patch did move some ordering of how things are done to work with my use case here, I will try to reproduce your issue in detail vs assume it was similar to the one I was experiencing. |
I resolved that paths issue (seemed to be something left over from prior debian builds from the same source), with a I'll try to find some time to look at the code your patch touches, along with producing a bare minimum configuration to re-create this issue. Anyone testing it will, of course, need a second display of some sort (I don't know if some 'virtual' display can be used for testing) to be sure of how it's working, or not. |
Okay, strange, the fix was working for me for both my issue and your issue, and then it stopped. I was afraid my reordering was going to mess something up. I'll dig a bit deeper. |
Note for testing, using the default-config is probably the best way to test things (you can manually change stuff in FvwmConsole/FvwmPrompt). To use the default-config just move your config out of the way. Then after testing you can just move your config back. |
Okay, I think I tracked it down again, I updated js/placement-fix. Let me know if that changes things for you. All my tests here seem positive so far. |
Using precisely the updated js/placement-fix branch, yes, it's now working correctly for me.
Now I just need to cherry-pick that into my steam menu fixes branch :) Thanks for looking into this! I'll go open a separate issue for the startup pager display issue. |
The pager issue seems like something else, what is your exact keybinding you use to 'move down one page'. |
When two monitors are on different desks, ensure that the correct monitor is used when placing windows. Otherwise placement policies can use the wrong desk when computing where to place a window. This is done two fold, first initialize windows with a NULL monitor so current monitor is used in cases a monitor is not specified for the window to start on, and second delay updating the window's monitor until after the window has been placed, so the correct monitor is found based on the windows location. This fixes #1043.
I've opened a new issue for that: #1077 |
When two monitors are on different desks, ensure that the correct monitor is used when placing windows. Otherwise placement policies can use the wrong desk when computing where to place a window. This is done two fold, first initialize windows with a NULL monitor so current monitor is used in cases a monitor is not specified for the window to start on, and second delay updating the window's monitor until after the window has been placed, so the correct monitor is found based on the windows location. This fixes #1043.
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 unknownExpected 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
incommon
, 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 usePositionPlacement
forssh-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 (wherepossible). Start with a blank config file (
fvwm3 -f/dev/null
) and go fromthere.
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 theModule 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:
to get the monitors in the correct configuration/layout. So,
DP-4
is the left monitor, andDP-2
the right.$HOME/.fvwm/fvwm3-output.log
from the step above. - Attached in that section.The text was updated successfully, but these errors were encountered: