Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion data/styles/Application.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ panel.maximized {

panel.translucent > box {
border-radius: 5px 5px 0 0;
margin-bottom: 4px;
}

panel.translucent.color-dark > box {
Expand Down
8 changes: 8 additions & 0 deletions src/PanelWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,20 @@ public class Wingpanel.PanelWindow : Gtk.Window {
}

private void on_realize () {
((Gdk.Toplevel) get_surface ()).compute_size.connect (on_compute_size);

update_panel_dimensions ();
Services.BackgroundManager.initialize (panel_height);

init_wl ();
}

private void on_compute_size (Gdk.ToplevelSize top_level_size) {
/* We do our own size calculation to make sure the box shadow in the translucent style isn't cut off */
top_level_size.set_size (width_request, panel.get_height () + 5);
top_level_size.set_shadow_width (0, 0, 0, 5);
}

private void update_panel_dimensions () {
panel_height = panel.get_height ();

Expand Down
Loading