Bug 2256 - different window placement policies
Status: ASSIGNED
Alias: None
Product: Openbox
Classification: Unclassified
Component: general
Version: 3.2
Hardware: All Linux
: P1 enhancement
Assignee: Mikachu
QA Contact:
URL: http://bugs.debian.org/303912
: 2752 placementfeatures
Depends on:
Blocks:
 
Reported: 2005-05-01 07:14 EDT by Tore Anderson
Modified: 2007-08-04 13:34:16 EDT
4 users (show)

See Also:



Description Tore Anderson 2005-05-01 07:14:56 EDT
Forwarded from Nicolas 
Comment 1 Jonas Kölker 2006-06-09 14:34:55 EDT
Let me just chime in 'ere:  yes!  More placement options.

So far, you have RowSmartPlacement, UnderMousePlacement and RandomPlacement (the latter not being in fluxbox);  it'd be nice to also see ColSmartPlacement (as suggested), *as well as* CascadePlacement and NotUnderMousePlacement, the latter only available as a patch on sourceforge.

Also, it'd be nice to have a way to specify your preferred order in which to try the different placement strategies; something like

<placement>
  <policy>Transient<policy>
  <policy>NotUnderMouse</policy>
  <policy>UnderMouse</policy>
  <policy>RowSmart<policy>
</placement>

And the semantics would be similar to that of place_client in place.c

(It's implied that NotUnderMouse would be smart and try to do a RowSmart placement while still dodging the mouse, if possible; see the patch to fluxbox).
Comment 2 Dana Jansens 2007-04-24 23:03:11 EDT
*** Bug 2752 has been marked as a duplicate of this bug. ***
Comment 3 Jonas Kölker 2007-04-26 15:14:30 EDT
(In reply to comment #2)
> *** Bug 2752 has been marked as a duplicate of this bug. ***
For the record: bug 2752 has a patch attached to it which implements this.
Comment 4 Dana Jansens 2007-06-12 00:25:07 EDT
im a little unsure what the point of notundermouse is.

if you're using mouse focus, then the mouse is in the focused window, probably, and placement will avoid that window more than anything else.  (previously the enter event would end up giving the window focus, now it wont unless underMouse is true)

if you're not using mouse focus, then the mouse could be anywhere and i don't see the point of trying to avoid it.
Comment 5 Tilman Sauerbeck 2007-07-26 09:26:42 EDT
It would be great if we could configure whether the smart placement algorithm first fills columns or whether it first fills rows.
I guess that's what Jonas meant when he mentioned "RowSmartPlacement".

Currently, it seems fill-columns-first is the hardcoded behaviour (3.4.3).

One point to think about is whether openbox should fill rows spanning all screens, or whether it should first fill one screen completely before moving to the others (currently, it first fills one screen). Maybe this should be configurable, too.
Comment 6 Dana Jansens 2007-07-26 09:27:52 EDT
It doesn't use columns or rows.  It has no notion of these really.

It picks the biggest square by width though, I think, maybe.
Comment 7 Dana Jansens 2007-08-04 13:33:41 EDT
*** Bug 3286 has been marked as a duplicate of this bug. ***
Comment 8 Dana Jansens 2007-08-04 13:34:16 EDT
see bug http://bugzilla.icculus.org/show_bug.cgi?id=3286 for other input and ideas