Skip to content

Commit

Permalink
OSD: fix rendering on noncomposited desktop
Browse files Browse the repository at this point in the history
Use same function as in the composited case. gtk_widget_get_allocated_width/height seems to cause a lot of problems in GTK3
  • Loading branch information
lukefromdc committed Dec 22, 2016
1 parent 456325e commit 5d580b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/common/msd-osd-window.c
Expand Up @@ -207,8 +207,7 @@ draw_when_not_composited (GtkWidget *widget, cairo_t *cr)
int width;
int height;

width = gtk_widget_get_allocated_width (widget);
height = gtk_widget_get_allocated_width (widget);
gtk_window_get_size (GTK_WINDOW (widget), &width, &height);
context = gtk_widget_get_style_context (widget);

gtk_style_context_set_state (context, GTK_STATE_FLAG_ACTIVE);
Expand Down

0 comments on commit 5d580b9

Please sign in to comment.