diff options
author | lukefromdc <[email protected]> | 2016-11-30 21:31:03 -0500 |
---|---|---|
committer | monsta <[email protected]> | 2017-01-23 16:31:45 +0300 |
commit | d6bbfd16df54df11b93992f47f13a957fbb4e01a (patch) | |
tree | c834c5647d3e723de30c5bfb2c9be006fbfe39f0 /plugins | |
parent | 87ca1624b52e95afd6347fe321b8c20cfe098ef0 (diff) | |
download | mate-settings-daemon-d6bbfd16df54df11b93992f47f13a957fbb4e01a.tar.bz2 mate-settings-daemon-d6bbfd16df54df11b93992f47f13a957fbb4e01a.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')
-rw-r--r-- | plugins/common/msd-osd-window.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/common/msd-osd-window.c b/plugins/common/msd-osd-window.c index 5564532..739a3b6 100644 --- a/plugins/common/msd-osd-window.c +++ b/plugins/common/msd-osd-window.c @@ -362,8 +362,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); |