summaryrefslogtreecommitdiff
path: root/obrender/render.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2012-09-30 20:29:45 -0400
committerDana Jansens <danakj@orodu.net>2012-10-06 21:56:56 -0400
commit01f62ded2fe289fe245f4f05b5825f4bdcbe1dc3 (patch)
tree52d3acf0c1730714b248ff2122b22ae46c033835 /obrender/render.h
parent9a5160b88bc92dbfe5cc7e222a576367cea2fc5b (diff)
Use the nearest monitor when the search query rect does not intersect any monitor (Fix bug 5500)
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.
Diffstat (limited to 'obrender/render.h')
0 files changed, 0 insertions, 0 deletions