xmonad / xmonad-contrib

Contributed modules for xmonad
https://xmonad.org
BSD 3-Clause "New" or "Revised" License
586 stars 274 forks source link

[BUG/IMPROVEMENT] Cross Layout is unusable with just 2 or 3 windows opened + windows glitch with mouse over (ever) #793

Closed thealio closed 1 year ago

thealio commented 1 year ago

Problem Description

Hi, as reported in the title XMonad.Layout.Cross is unusable if you open only 2 or 3 windows: if you open only 2 windows: there are only two long & slim windows which one is above the other one. If you open only 3 widows , there are 3 windows on the right not tiled and not following the layout. When you use the mouse on this layout, it's kind of a hell. My distro is Arco Linux (Arch Linux repos)

Steps to Reproduce

Open just two windows under XMonad.Layout.Cross

Configuration File

https://xmonad.github.io/xmonad-docs/xmonad-contrib-0.16.999/XMonad-Layout-Cross.html

import XMonad.Layout.Cross(simpleCross)

myLayout = simpleCross ||| etc.. main = xmonad def { layoutHook = myLayout }

Issue

What I expected

Screenshot-2023-01-15-1673804279_screenshot_1916x982 Screenshot-2023-01-15-1673804294_screenshot_1916x982 Screenshot-2023-01-15-1673804302_screenshot_1916x982

thealio commented 1 year ago

Hi, Any news about this issue?

slotThe commented 1 year ago

You're right, the cross layout seems to be completely broken; I reckon no one has used this layout in a while and it just bitrotted. I'm almost tempted to just deprecate it, to be honest, since it seems like there are many other "master pane in the center and stack around it" type of layouts, which also work muc hbetter.

thealio commented 1 year ago

You're right, the cross layout seems to be completely broken; I reckon no one has used this layout in a while and it just bitrotted. I'm almost tempted to just deprecate it, to be honest, since it seems like there are many other "master pane in the center and stack around it" type of layouts, which also work much better.

Hi can you suggest me some of these layouts? Currently, I use this instead the Cross Layout

||| layoutHintsWithPlacement (0.5, 0.5) Circle

geekosaur commented 1 year ago

ThreeColMid from XMonad.Layout.ThreeColumn may be of interest.

thealio commented 1 year ago

ThreeColMid from XMonad.Layout.ThreeColumn may be of interest.

I already use it as ResizableThreeColMid 1 (3/100) (1/2) []

geekosaur commented 1 year ago

Also it looks like nobody addressed your mouse glitching. Does "(ever)" mean you see it regardless of layout? We have lots of users (including @slotThe and myself) who don't have such a problem.

thealio commented 1 year ago

hi

geekosaur commented 1 year ago

Hm. It's not at all unusual for video drivers to have bugs with border rendering that cause effects like this, which can be worked around by using a compositor; but running a compositor in VirtualBox is not at all a good idea. I'm still thinking about this one and may set up a VB environment to test this in.

geekosaur commented 1 year ago

It took me a while to get VB set up because it behaves rather oddly on my system (I normally use VMWare Player as a result), but having set it up and gotten a working minimal Ubuntu install going, I can't reproduce video glitching.

thealio commented 1 year ago

mmm Maybe it's just a problem related to my hardware

thealio commented 11 months ago

Hi everybody,

I recently tried again import XMonad.Layout.Cross (simpleCross)

Now it works OK for me