Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xfce
xfce4-panel
Commits
87c609e7
Commit
87c609e7
authored
Jun 04, 2022
by
Gaël Bonithon
Browse files
Use RGBA visual only if compositing is enabled (Fixes #251)
parent
e75c9827
Pipeline
#15502
passed with stages
in 4 minutes and 25 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
panel/panel-base-window.c
View file @
87c609e7
...
...
@@ -451,11 +451,9 @@ panel_base_window_screen_changed (GtkWidget *widget, GdkScreen *previous_screen)
/* set the rgba colormap if supported by the screen */
screen
=
gtk_window_get_screen
(
GTK_WINDOW
(
window
));
visual
=
gdk_screen_get_rgba_visual
(
screen
);
if
(
visual
!=
NULL
)
{
gtk_widget_set_visual
(
widget
,
visual
);
window
->
is_composited
=
gdk_screen_is_composited
(
screen
);
}
window
->
is_composited
=
gdk_screen_is_composited
(
screen
);
if
(
visual
!=
NULL
&&
window
->
is_composited
)
gtk_widget_set_visual
(
widget
,
visual
);
panel_debug
(
PANEL_DEBUG_BASE_WINDOW
,
"%p: rgba visual=%p, compositing=%s"
,
window
,
...
...
plugins/systray/systray-manager.c
View file @
87c609e7
...
...
@@ -798,7 +798,7 @@ systray_manager_set_visual (SystrayManager *manager)
visual
=
gdk_screen_get_rgba_visual
(
screen
);
panel_debug
(
PANEL_DEBUG_SYSTRAY
,
"rgba visual is %p"
,
visual
);
if
(
visual
!=
NULL
)
if
(
visual
!=
NULL
&&
gdk_screen_is_composited
(
screen
)
)
{
/* use the rgba visual */
xvisual
=
GDK_VISUAL_XVISUAL
(
visual
);
...
...
wrapper/wrapper-plug.c
View file @
87c609e7
...
...
@@ -80,7 +80,7 @@ wrapper_plug_init (WrapperPlug *plug)
/* set the colormap */
screen
=
gtk_window_get_screen
(
GTK_WINDOW
(
plug
));
visual
=
gdk_screen_get_rgba_visual
(
screen
);
if
(
visual
!=
NULL
)
if
(
visual
!=
NULL
&&
gdk_screen_is_composited
(
screen
)
)
gtk_widget_set_visual
(
GTK_WIDGET
(
plug
),
visual
);
/* set the panel class */
...
...
Gaël Bonithon
@Tamaranch
mentioned in commit
a8954517
·
Jun 05, 2022
mentioned in commit
a8954517
mentioned in commit a8954517cabb80d870c82c92d3f834d36c305b54
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment