yazeed1s / zwm

X11 tiling window manager
BSD 2-Clause "Simplified" License
72 stars 4 forks source link

Different desktop on `xrandr HDMI --left-of eDP` #29

Open Lang-Lovdog opened 2 days ago

Lang-Lovdog commented 2 days ago

Issue Type

Description

zwm places every opened program (except for polybar) only on HDMI when using HDMI side of laptop's screen

Steps to Reproduce (for Bug Reports)

  1. Open zwm
  2. Connect HDMI
  3. Configure with xrandr --output HDMI --left-of eDP1
  4. Open windows and change desktops

Expected Behavior

Each screen corresponding to a different desktop and can move windows between them.

Actual Behavior

zwm places all opened windows in one screen only and ignore the second leaving only polybar

Logs and Screenshots

Attach any relevant logs or screenshots that might help in diagnosing the issue.

Additional Information

This happens even if I start zwm before connecting the external monitor or after. If I connect the external before, X config defaults to HDMI --same-as eDP

Checklist

yazeed1s commented 3 hours ago

If you’re connecting your monitor before starting ZWM and still running into this issue, then it might be a bug or something with xrandr. But, currently, zwm doesn’t pick up on monitors being connected or disconnected while it’s running, it just picks up monitors that were connected before it started (I didn't handle cases where monitors change on the fly). I’ll fix this behavior next week or the week after when I get the time for it.