]> Dogcows Code - chaz/openbox/commitdiff
Use the nearest monitor when the search query rect does not intersect any monitor...
authorDana Jansens <danakj@orodu.net>
Mon, 1 Oct 2012 00:29:45 +0000 (20:29 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 7 Oct 2012 01:56:56 +0000 (21:56 -0400)
Previously we would try to find the primary monitor and use that when the search
was outside any monitor. However, if the primary monitor is chosen by the mouse
position and the mouse is not inside any monitor, we enter infinite recursion
trying to find the primary monitor.

The nearest monitor is a better metric anyhow, and this ensures
screen_find_monitor() is never recursive as it always returns a value without
depending on other screen.c methods.


No differences found
This page took 0.0215 seconds and 4 git commands to generate.