]> icculus.org git repositories - mikachu/openbox.git/commit
Pick the monitor most relevant to a rectangle more cleverly.
authorDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 03:04:21 +0000 (23:04 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 7 Oct 2012 01:56:56 +0000 (21:56 -0400)
commitd68116c9c9b2c9a9925d872141eff8e301ef3bb3
tree4ba60e897c890d59a8a4e136734534893c6aa0df
parentdc69fe7cedd679bf38c1be25130ed502af8ad4c4
Pick the monitor most relevant to a rectangle more cleverly.

When monitors overlap (this happens with cloning), we were choosing a monitor
to associate with a window, for maximization for example, somewhat arbitrarily.

Now we have a more clever algorithm that considers the configured primary
monitor first, and that does not prefer monitors based on their sizes, but only
how much of the window is in the monitor, excluding parts that were claimed
by another monitor already.
openbox/geom.h
openbox/screen.c