helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
807 stars 58 forks source link

Position new windows tidily (stacking) #86

Closed grahamperrin closed 3 years ago

grahamperrin commented 3 years ago

All four edges should be within the bounds of the current screen.

In this example (following https://github.com/helloSystem/ISO/issues/85#issuecomment-753485065) the first window opened by Terminal is inappropriately offset:

VirtualBox_optical FreeBSD_02_01_2021_15_13_27

Probably related: #54

grahamperrin commented 3 years ago

I'll not raise a separate issue for this, but I believe that:

– exceptions will include palette-type windows (and, I guess, modal dialogues; accept that some applications will use them).

probonopd commented 3 years ago

Window menu for most windowed things

Yes, as part of https://github.com/helloSystem/Menu/issues/21. Question is whether it needs to be its own menu or could be a submenu or section within System.

probonopd commented 3 years ago

All four edges should be within the bounds of the current screen.

How to ensure that technically? I don't know. Also, I doubt anyone is using such tiny screen sizes anymore. I'd consider 1024x768 the minimum, 800x600 the bare minimum (visual annoyances expected).

grahamperrin commented 3 years ago

I doubt anyone is using such tiny screen sizes anymore.

True, it just happened to be so small after doing other stuff with VirtualBox.

grahamperrin commented 3 years ago

… How to ensure that technically? I don't know. …

I should expect a good window manager to ensure such things …

grahamperrin commented 3 years ago

https://github.com/helloSystem/ISO/issues/28#issue-757837396

The window manager has been configured to open new windows in a sane default location; …

Windows opening away from the main screen:

image

Shut Down dialogue opening away from the main screen:

image

Comparable, specific to Filer: https://github.com/helloSystem/Filer/issues/24

probonopd commented 3 years ago

I would like new windows to be positioned like this:

image

Is this possible in Openbox?

grahamperrin commented 3 years ago

Openbox

No mention of stacking at http://openbox.org/wiki/Main_Page or https://de.wikipedia.org/wiki/Openbox but https://en.wikipedia.org/wiki/Openbox does describes it as a stacking window manager.

Indirectly via StartPage.com search results:

Personally, no recent experience of Openbox; I do have some Openbox options in my sddm menu of desktop environments, but none of them work. YMMV.

probonopd commented 3 years ago

Tiling is about the opposite of stacking.. resulting in windows being opened all over the place, preferably in the corners (hence covering the important right-hand side of the desktop where the desktop icons are). Hence I am currently forcing all windows to be opened in the same top-left position but that is clearly not optimal.

Hence, reopening the ticket.

grahamperrin commented 3 years ago

Tiling is about the opposite of stacking …

Understood. Tiling mentioned only because some users might prefer to take advantage of the tiling capabilities of what's described as a stacking window manager.

Stacking by default: I did like, years ago, on the Mac. With the bottom right hand corner of a window never beyond the bounds of the screen.

grahamperrin commented 3 years ago

Given the revised title, would you like to close this? As a duplicate of earlier https://github.com/helloSystem/ISO/issues/54

grahamperrin commented 3 years ago

You might want a separate issue for part of this.

0.4.0 (0D25)

With the global menu on a secondary display, to the left of a notebook:

https://user-images.githubusercontent.com/192271/106390147-df967080-63de-11eb-985f-f18d4d6895c6.mp4

probonopd commented 3 years ago

Let's just say that multi-monitor setups are utterly broken for now:

But neither of this has to do with the subject of this ticket, which is about "position new windows tidily".

probonopd commented 3 years ago

The Default Position on a Single Screen When your application opens a new document window, position it in the upper-left corner of the screen. Open each additional new document windo below and to the right of its predecessor. Figure 5-15 shows windows positioned on a single screen.

image

Source: Apple Computer, Inc., 1992, Macintosh Human Interface Guidelines, First Printing, November 1992. Addison-Wesley Publishing Company. ISBN 0-201-62216-5

viljamivirolainen commented 3 years ago

Openbox

No mention of stacking at http://openbox.org/wiki/Main_Page or https://de.wikipedia.org/wiki/Openbox but https://en.wikipedia.org/wiki/Openbox does describes it as a stacking window manager.

Indirectly via StartPage.com search results:

Personally, no recent experience of Openbox; I do have some Openbox options in my sddm menu of desktop environments, but none of them work. YMMV.

Zentile is a nice solution to make Openbox or any EWMH compliant window manager into a tiling wm. I have been using it with XFCE's Xfwm. https://github.com/blrsn/zentile

probonopd commented 3 years ago

Thanks @viljamivirolainen ...only that the intended behavior as shown in Figure 5-15 is "stacking", not "tiling" if I am not mistaken. So we are not looking for tiling.

kettle-7 commented 3 years ago

I should expect a good window manager to ensure such things

Yeah, well we're using Openbox. I'm not sure about multiple monitors but when it comes to positioning KWin is more like a "good window manager".

probonopd commented 3 years ago

kwin_x11 will do this nicely. Will be in some future version of helloSystem.

probonopd commented 3 years ago

helloSystem 0.6.0 should do "Position new windows tidily (stacking)" correctly now thanks to KWin.app. Please comment here if you think this needs to be reopened.