]> icculus.org git repositories - dana/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, 30 Sep 2012 15:40:17 +0000 (11:40 -0400)
commit9f1d4f3592a5abf125e3baf5098f605f29f00d73
tree6b141780ddb9a26e24c56b3ee8c5ff4ee05c464e
parent70f52997581a3e17d41c058ab053d3487dfc7218
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
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