-
Notifications
You must be signed in to change notification settings - Fork 181
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
Changing tags with two monitors #167
Comments
I tried to replicate the issue in different ways to improve the description, that's why it's a bit edited. I even thought the problem was fixed suddenly, but what happens is that I must have an opened screen on the not primary monitor to trigger the issue. |
i dont have multiple monitors so i cannot test this |
Well, I don't have much knowledge on the necessary tecnologies to fix this, I guess. I'd gladly share my screen on Discord or something like that to help fix the issue, but to be honest, it can be a waste of your time since you don't use multiple monitors. I don't know if I see a feasible solution to this. I can try to manage it myself, find a friend who is able to fix the problem and post the solution here, I don't know. Whatever fits for you. |
Test with vanilla dwm and a clean installation and if the issue persists, send a detailed bug report to the appropriate suckless mailing list (see here). In fact, this is the proper way to troubleshoot chadwm; chadwm is just a fork of dwm with some patches and tweaks. |
Thank you :) understood. I'll let you know. |
Installing DWM was easier than I thought. I'm attaching a video showing that in DWM it works: WhatsApp.Video.2023-08-22.at.14.24.12.mp4 |
It is possible to test multi-monitor behaviour using Xephyr with the Xinerama RANDR extension, e.g. Xephyr +extension RANDR +xinerama -screen 1000x1080 -screen 1000x1080 -ac :3 Then running the window manager under the designated display. DISPLAY=:3 ./dwm But even with that I can't replicate chadwm crashing when changing tags on the second monitor. |
Hmm, that's weird. To replicate the crashes, all I have to do is open a screen on the secondary monitor and try to change tags. I will remove everything regarding chadwm and clone again to be 200% sure I have everything updated here. My local files may be older, even though the installation process I've followed should bring the most recent changes. |
I could get a log of the problem:
Edit: I tried this, for example, searching for a fix to it, no success until then. |
I see what you mean now.
By "open a screen" in this context refers to hotplugging (or enabling) a new monitor while the window manager is running. Also The problem is that This is something that was an issue in very early versions of the tag preview patch and the implementation here looks like an early adoption. The tag preview patch on the suckless site creates the As an end user I'd recommend just disabling the config for now until the issue is addressed (assuming that there is interest in fixing the issue). |
Hmm, by "open a screen" I mean open any application or window on the left monitor and then try to change tags. But what you said fits perfectly in the issue, it's a better description that goes directly to the point, I think. And I'm a bit confused because my Anyways, turning off the I don't have any problem if you want to close the issue, I'll just not close it to give you the decision. |
If we use a simpler example of using xrandr --output DisplayPort-0 --off --output DVI-D-0 --mode 1920x1080 --pos 0x0 --rotate left --output HDMI-A-0 --primary --mode 2560x1080 --pos 1080x648 --rotate normal &
exec dwm The If it completes before then dwm will start up with the desired monitor positions, but if it completes after then dwm will start up with whatever setup was there initially. When the Dropping the I am not overly familiar with how |
@bakkeby got it. Thanks for the explanation 🤝 |
I updated the patch, you can try MinePro120/ddwm. |
Nice :D do you want me to help test this branch in my machine or is it fine already? |
You can test it, that would be helpful. |
I apologize for the delay in my response; I have been preoccupied with some complex personal matters. I wanted to share an update before I return from my travels post-holidays. I suspect that the issue was related to the BIOS internal graphics settings being enabled. Upon disabling this setting and successfully connecting a second cable to the graphics card, the problem ceased to occur. I suppose this was already expected here though. |
Update
I'm writing this here in the top to make it easier for anyone finding a solution.
It's an approach that remediates the problem.
For me, it was just a matter of deactivating
tag_preview
.This can be achieved by changing this from 1 to 0 and recompiling.
Expected behavior
Whenever I change tags with opened screens in both monitors, I imagine it should either (or maybe both via configuration? I don't know):
What happens
When I'm on my primary monitor (on the right), I can freely change tags.
It's worth mentioning that the left monitor keeps the same tag and screen opened while I change tags on the right monitor.
However, whenever I try to change a tag on my left monitor (not primary) when I have a screen on it, I'm kicked out of the session (logoff) and then when I login again, my primary monitor is changed to be the left one and I'm not able to use the right one. Even after running the
autorandr <profile>
command.I tried to:
Super + D
to search and open something with the monitor focused;Super + Shift + Arrow keys
.Note: If I
reboot
, everything gets back to normal, but I can trigger the issue back anyways.How to trigger the issue
Using two monitors, try to move to other tags in the monitor that is not the primary one.
Video demonstrating the issue
https://drive.google.com/file/d/1KYiMYOuuZo1P1nQPWPUaik48jBfhofrn/view?usp=sharing
Note: I'm sorry if I sounded weird or if I said something wrong. English is not my native language.
Technical information
I've installed Arco Linux ISO B of ChadWM. Plus, I'm using
arandr
andautorandr
to manage my displays.Here is what
~/.screenlayout/my-layout.sh
looks like:#!/bin/sh xrandr --output HDMI-0 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output DP-0 --off --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output DP-3 --off --output HDMI-1-1 --off --output HDMI-1-2 --mode 1920x1080 --pos 0x0 --rotate normal
Note: I've modified ChadWM's
/scripts/run.sh
for the monitor setup. It looks like this:My neofetch info:
The text was updated successfully, but these errors were encountered: