GNOME Bugzilla – Bug 756886
The GtkWindow patch here is necessary to make transparent terminals work under
Last modified: 2015-10-22 15:09:16 UTC
Wayland - see https://bugzilla.redhat.com/show_bug.cgi?id=1207943. (I also had to work around another bug in GTK+ where gtk_widget_set_app_paintable(window) doesn't update the opaque region of the window until the next paint. Maybe we should make gtk_widget_set_app_paintable() queue a resize, though other widgets than GtkWindow won't need that - it's not like app-paintable is usually changed on the fly.)
Created attachment 313775 [details] [review] GtkWindow: draw the frame and shadow even for app-paintable windows If a window is decorated, we need to draw the frame and shadow, even if it is app-paintable - it's just nonsense to have a frame that we handle events on, but expect the app to paint it. (We paint the titlebar in any case.) If a client wants to handle all painting, it should use an undecorated window.
Created attachment 313776 [details] [review] testgtk/Alpha Window: fix the drawn area when we are drawing decorations A GtkWindow's allocation includes the titlebar, borders, and shadows; we only want to draw our custom alpha content over the child allocation of the GtkWindow.
Review of attachment 313775 [details] [review]: makes sense
Review of attachment 313776 [details] [review]: sure
Pushed to master and gtk-3-18 Attachment 313775 [details] pushed as e29b911 - GtkWindow: draw the frame and shadow even for app-paintable windows Attachment 313776 [details] pushed as 390c111 - testgtk/Alpha Window: fix the drawn area when we are drawing decorations