GNOME Bugzilla – Bug 759905
Popover: Invisible to events when we set transparent backgrounds
Last modified: 2016-01-08 12:54:26 UTC
Reproduce: 1. Open Nautilus 2. Open Inspector 3. on CSS view set: popover {background: rgba(0,0,0,1.0); } That works fine Then: popover {background: rgba(0,0,0,0.1); } Color works, but we cannot interact with the controls. Like Popover is losing the depth Expected behavior: Controls should work The same if we do: popover.background{}
This also happens if we set: background:none; So it isn't related to rgba function.
Created attachment 317935 [details] [review] Protect popover input shape against transparent backgrounds The problem here is that we use gtk_render_background for the input shape, so just use a rounded box instead. I'm not sure how correct this version is, i.e. how the border width counts into the input shape if it does, etc. and I'd like a better commit message :) It does fix the problem for me though, I don't have time right now to test it properly, maybe tomorrow.
(In reply to Timm Bäder from comment #2) > It does fix the problem for me though, I don't have time right now to test > it properly, maybe tomorrow. It does fix it here too. Thanks!
Ok, looks like that patch works fine, clicking on the border closes the popover in 3.18, too. As a side note, we are using gtk_popover_apply_tail_path in gtk_popover_fill_border_path, but clicking on the tail still closes the popover. Why does that happen?
Created attachment 318271 [details] [review] GtkPopover: Protect against transparent backgrounds If the background is transparent, we can't use it for the input shape, since that will be empty. Draw a box with rounded corners irectly instead, in fully opaque black.
Review of attachment 318271 [details] [review]: ok, lets go with it
Pushed as 711ffd648ed191bad9f0a956cf05905a73a9e4bd, thanks.