summaryrefslogtreecommitdiff
path: root/plugins/common
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-11-30 21:31:03 -0500
committerlukefromdc <[email protected]>2016-12-22 17:02:00 -0500
commit5d580b9985b61a486c8d23eaa34091a14d01b9e0 (patch)
treeb7c49cf36aeed94a2b7d74da917749138b6275e2 /plugins/common
parent456325e9057e57f09d381ea000d9f2dce4774ec8 (diff)
downloadmate-settings-daemon-5d580b9985b61a486c8d23eaa34091a14d01b9e0.tar.bz2
mate-settings-daemon-5d580b9985b61a486c8d23eaa34091a14d01b9e0.tar.xz
OSD: fix rendering on noncomposited desktop
Use same function as in the composited case. gtk_widget_get_allocated_width/height seems to cause a lot of problems in GTK3
Diffstat (limited to 'plugins/common')
-rw-r--r--plugins/common/msd-osd-window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/common/msd-osd-window.c b/plugins/common/msd-osd-window.c
index 49b01cb..d50adb8 100644
--- a/plugins/common/msd-osd-window.c
+++ b/plugins/common/msd-osd-window.c
@@ -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);