Commit 512db35b authored by Guido Gunther's avatar Guido Gunther
Browse files

shell: Activate background again

https://github.com/swaywm/wlroots/issues/897

 is true independent if
there's background surface or not so we're not making matters worse
by enabling it.

Closes: #76
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent cbb42aea
......@@ -379,8 +379,7 @@ panels_dispose (PhoshShell *self)
static void
background_create (PhoshShell *self)
{
#ifdef WITH_PHOSH_BACKGROUND
PhoshWayland *wl = phosh_wayland_get_default();
PhoshShellPrivate *priv = phosh_shell_get_instance_private (self);
PhoshMonitor *monitor;
gint width, height;
......@@ -390,11 +389,13 @@ background_create (PhoshShell *self)
phosh_shell_get_usable_area (self, NULL, NULL, &width, &height);
/* set it up as the background */
priv->background = phosh_background_new (
priv->layer_shell, monitor->wl_output, width, height);
#endif
priv->background = PHOSH_LAYER_SURFACE (phosh_background_new (
phosh_wayland_get_zwlr_layer_shell_v1(wl),
monitor->wl_output, width, height));
gtk_widget_show (GTK_WIDGET (priv->background));
}
static void
css_setup (PhoshShell *self)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment