* [PATCH installer] ui: gtk3: set up proper RGBA visual for main window
@ 2026-06-18 10:54 Christoph Heiss
0 siblings, 0 replies; only message in thread
From: Christoph Heiss @ 2026-06-18 10:54 UTC (permalink / raw)
To: pve-devel
This properly fixes all instances of broken damage-tracking with dialogs
and other overlaying widgets on top of the WebKit2 view.
By using RGBA instead of a the default RGB visual, the GTK <-> X server
interaction for compositing widgets on top of each other seem to work
correctly.
This was previously worked around in one instance and thus also
effectively reverts commit
55c764163 ("gui: redraw window after closing disk setup dialog")
.. as it is now no longer needed.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
proxinstall | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/proxinstall b/proxinstall
index 49b1612..51ead26 100755
--- a/proxinstall
+++ b/proxinstall
@@ -236,6 +236,13 @@ sub create_main_window {
Proxmox::UI::init_gtk($gtk_state, $iso_env);
+ # make it play nice without a compositor, i.e. this enables proper damage
+ # tracking in GTK in combination with WebKit2
+ my $visual = $window->get_screen()->get_rgba_visual();
+ if ($visual) {
+ $window->set_visual($visual);
+ }
+
$window->show_all;
$window->present();
}
@@ -1651,7 +1658,6 @@ sub create_hdoption_view {
$dialog->show();
$dialog->run();
- $gtk_state->{window}->queue_draw();
my $get_float = sub {
my ($entry) = @_;
--
2.54.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-18 10:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-18 10:54 [PATCH installer] ui: gtk3: set up proper RGBA visual for main window Christoph Heiss
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox