GNOME Bugzilla – Bug 641197
mouse events at pixel row zero are ignored
Last modified: 2011-03-07 14:04:30 UTC
Using an external display along with the laptop with the following geometry: +======================+-------------+ | | | | | | | | | | +-------------+ | | +----------------------+ where '=' means the shell's panel, i.e. the bigger display is the primary one. It happens that mouse clicks on the panel items (e.g. the clock) do not activate the items if the pointer is at row zero (y == 0). Hot corner overview activation doesn't work reliably either.
I have the exact same problem same problem, but I have a single display. Hot corner is activated at row 1, instead of row zero.
Ok, this is NOT related to there being 2 displays. What led me to believe so is that it doesn't happen with only the laptop's display on. But if I disable the laptop's display and only leave the external on I get the buggy behavior. Any hints for debugging this further are very welcome.
Created attachment 182422 [details] [review] tune clutter's point_in_poly test for polys in screen coords Ok, I was able to reproduce a similar issue outside of gnome-shell and the attached patch fixed the problem for me so it would be good to hear if that also fixes this issue too.
Created attachment 182426 [details] [review] tune clutter's point_in_poly test for polys in screen coords reading the number of casts being done to pull a float out of a byte array, then cast to an int to pixel align (poorly) before casting back to a float was looking rather silly so this tweaked patch instead separates out the pixel alignment step and also uses the COGL_UTIL_NEARBYINT macro to pixel align to the nearest integer instead of simply flooring the floats.
The patch from comment #3 fixed the problem for me. I didn't have a chance to try the next one but I assume it will too.
Yup, patch from comment #4 fixes it here. Thanks
Patch from comment #4 fixed it for me too. Excelent!
ok thanks for testing, the second patch was pushed to master as 54f85832b7fa and to the clutter-1.6 branch as 95af5bd973a3b5f