[gnome-settings-daemon] media-keys: Redraw volume OSD when not composited
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Redraw volume OSD when not composited
- Date: Thu, 3 Nov 2011 11:03:40 +0000 (UTC)
commit e6f3e714b104cef3a453b092bce5d2be56497644
Author: Marien Zwart <m_zwart 123mail org>
Date: Thu Nov 3 11:00:38 2011 +0000
media-keys: Redraw volume OSD when not composited
gnome-settings-daemon draws a correct osd window when you hit a
media key, but does not redraw that window on volume changes afterwards,
unless a compositing manager is running (tested with xcompmgr).
It looks like the culprit is gsd_osd_window_update_and_hide, which
has a description of "Queues the @window for immediate drawing, and
queues a timer to hide the window." but only queues a redraw if the
window is composited.
Removing the check for compositedness makes it work without a
compositing manager.
https://bugzilla.gnome.org/show_bug.cgi?id=660990
plugins/media-keys/gsd-osd-window.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/plugins/media-keys/gsd-osd-window.c b/plugins/media-keys/gsd-osd-window.c
index c91197d..40d6433 100644
--- a/plugins/media-keys/gsd-osd-window.c
+++ b/plugins/media-keys/gsd-osd-window.c
@@ -740,7 +740,5 @@ gsd_osd_window_update_and_hide (GsdOsdWindow *window)
remove_hide_timeout (window);
add_hide_timeout (window);
- if (window->priv->is_composited) {
- gtk_widget_queue_draw (GTK_WIDGET (window));
- }
+ gtk_widget_queue_draw (GTK_WIDGET (window));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]