changeset 616:30f74d6b75cf trunk

[svn] - aosd: added _NET_WM_WINDOW_TYPE_DOCK to osd window hints
author giacomo
date Wed, 07 Feb 2007 17:46:12 -0800
parents 1fb44c12a812
children 312bc3bb686e
files ChangeLog src/aosd/ghosd.c
diffstat 2 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Feb 07 10:35:13 2007 -0800
+++ b/ChangeLog	Wed Feb 07 17:46:12 2007 -0800
@@ -1,3 +1,11 @@
+2007-02-07 18:35:13 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1316]
+  - avoid NULL dereference. closes mandriva #28603.
+  
+  trunk/src/vorbis/vorbis.c |    2 +-
+  1 file changed, 1 insertion(+), 1 deletion(-)
+
+
 2007-02-07 11:52:25 +0000  Giacomo Lozito <james@develia.org>
   revision [1314]
   - aosd, further work on ghosd source: do not use a override_redirect=true window and give the WM information about initial pos/size of osd (prevents flickering with normal windows); now the osd won't be displayed in multiple workspaces, only in the one where it's initially triggered
--- a/src/aosd/ghosd.c	Wed Feb 07 10:35:13 2007 -0800
+++ b/src/aosd/ghosd.c	Wed Feb 07 17:46:12 2007 -0800
@@ -132,6 +132,15 @@
     mwm_hints, mwm_hints, 32, PropModeReplace,
     (unsigned char *)&mwm_hints_setting, 4);
 
+  /* setting the window type to _NET_WM_WINDOW_TYPE_DOCK helps with
+     windowmaker (and hopefully doesn't break compatibility with other wm) */
+  Atom win_type = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE", False);
+  Atom win_type_setting[] = {
+    XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DOCK", False)
+  };
+  XChangeProperty(dpy, win, win_type, XA_ATOM, 32,
+                  PropModeReplace, (unsigned char*)&win_type_setting, 1);
+
   /* always on top, not in taskbar or pager. */
   Atom win_state = XInternAtom(dpy, "_NET_WM_STATE", False);
   Atom win_state_setting[] = {