GtkEntry: completion window doesn't handle rounded corners
Steps to reproduce
Here's a small GJS script that reproduces the problem:
imports.gi.versions.Gdk = imports.gi.versions.Gtk = '3.0';
const {Gdk, GObject, Gtk} = imports.gi;
Gtk.init(null);
const model = new Gtk.ListStore();
model.set_column_types([GObject.TYPE_STRING]);
const words = ['abomasum', 'absquatulate', 'adscititious', 'amphibology',
'anfractuous', 'anguilliform', 'apoptosis'];
words.forEach(word => model.set(model.append(), [0], [word]));
const completion = new Gtk.EntryCompletion({model});
completion.set_text_column(0);
const entry = new Gtk.Entry({completion, valign: Gtk.Align.CENTER});
const w = new Gtk.Window({default_width: 300, default_height: 300, name: 'top'});
w.add(entry);
const css = `
#top { background-color: red; }
entry window { border-radius: 10px; }
entry frame { margin: 10px; }`;
const provider = new Gtk.CssProvider();
provider.load_from_data(css);
Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), provider,
Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
w.connect('destroy', () => Gtk.main_quit());
w.show_all();
Gtk.main();
Run the script and type "a" in the entry.
Current behavior
The completions window has rounded corners, but the space between the rounded corners and the rectangle that the window would otherwise occupy is black.
Expected outcome
You should be able to see the red window background outside the top rounded corners, and your desktop outside the bottom rounded corners.
Version information
Tested inside GNOME Flatpak runtime. Info:
Ref: runtime/org.gnome.Sdk/x86_64/master
ID: org.gnome.Sdk
Arch: x86_64
Branch: master
Origin: gnome-nightly
Collection ID:
Date: 2018-03-19 19:51:59 +0000
Subject: build of org.gnome.Sdk, Mon Mar 19 18:04:31 UTC 2018
Commit: ad722135212ca96f2611f839cb1e3ba41ab2c29d5c679737f886e3363851eb69
Parent: 51575bef5f4b620eb02d86142eaf74f45e36f533110b5be8fa88dd0adedc5405
Location: /var/lib/flatpak/runtime/org.gnome.Sdk/x86_64/master/ad722135212ca96f2611f839cb1e3ba41ab2c29d5c679737f886e3363851eb69
Installed size: 1.6 GB
Additional information
It's unfortunately not possible to take a screenshot of the completion window since it loses focus and disappears when you press Print Screen. Here's a short screencast.