Skip to content

Commit

Permalink
Fix thick border when shadows unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
abb128 authored Jun 1, 2023
1 parent 6ae7e06 commit 3b0a8c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/livecaptions-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ static void livecaptions_window_init(LiveCaptionsWindow *self) {

g_idle_add(deferred_update_keep_above, self);
g_timeout_add_seconds(5, show_relevant_slow_warning, self);

// GTK adds solid-csd class when the compositor does not support window shadows
// This adds a very ugly thick border, so we remove it
gtk_widget_remove_css_class(GTK_WIDGET(self), "solid-csd");
}

static gboolean hide_slow_warning_after_some_time(void *userdata) {
Expand Down

0 comments on commit 3b0a8c8

Please sign in to comment.