LukeSmithxyz / dwm

Luke's build of dwm
MIT License
809 stars 537 forks source link

xinerama xrandr #241

Closed sudo-Tiz closed 11 months ago

sudo-Tiz commented 11 months ago

Hello, when using multiple screens dwm displays the window on my multiple screens as if they were one (status bar spread over multiple screens and window too). image

In my opinion, the problem comes from Xinerama which is a deprecated lib replaced by Xrandr. In fact, Xrandr is used by certain scripts in the larbs project, such as "selectdisplay". But Xrandr and Xinerama are incompatible, (so adding the xinerama option in xorg.conf is not an option). it causes XineramaIsActive to be false and dwm to use the default monitor setup. So I wanted to modify the updategeom function to use Xrandr lib instead of Xinerama (as well as the isuniquegeom function on which updategeom depends). Unfortunately, it seems I'm not a (good) developer and my code causes core dumps.

Is there any reason to keep using xinerama? Is it possible to make the multiple screens work without modifying the code (by changing the conf files)? Could you suggest a code update to use xrandr?