Get transparency plugin working again
Review Request #1731 — Created Sept. 9, 2022 and submitted
No need to restrict to Windows-only as it uses plain GTK APIs.
GTK4 doesn't support setting Always-on-Top programmatically, and that seems bad from the user point of view for programs to be able to do that anyway, so drop that option.
Instead of tracking a list of windows manually based on
PurpleConversation
s, just follow along theGtkApplication
for windows added/removed.
Configuration is completely untested because we have no way to open plugin prefs yet.
Enabled plugin and checked that Buddy List and Conversation Windows were made transparent. The latter also gained a slider to set the opacity, which also worked.
Opaque-during-focus also seemed to work, though there seems to be a bug with the window getting a focus
enter
event on hover even if the window isn't really focused.We don't currently have a way to create a second Conversation Window, so I can't be entirely sure the window signals work, but at least
window-added
is checked because the plugin is loaded before the first window is created.
- Change Summary:
-
Fix review issues and inline
wintrans_slider
toadd_slider
. - Commits:
-
Summary ID a600774a78809260ada5e9eb3d3f03455512dda3 6d9e1ca52ee73112cab46dd7958ec8657a369842 - Diff:
-
Revision 2 (+552 -634)
- Change Summary:
-
Remove an errant
g_message
- Commits:
-
Summary ID 6d9e1ca52ee73112cab46dd7958ec8657a369842 f3f0f9ceeb25b032cdd65ed854803a03d1c46e23 - Diff:
-
Revision 3 (+550 -634)