]> Dogcows Code - chaz/tint2/commitdiff
*fix* Check wmhints for NULL
authorAndreas Fink <andreas.fink85@googlemail.com>
Wed, 16 Sep 2009 11:00:23 +0000 (11:00 +0000)
committerAndreas Fink <andreas.fink85@googlemail.com>
Wed, 16 Sep 2009 11:00:23 +0000 (11:00 +0000)
src/tint.c
src/tooltip/tooltip.c
src/tooltip/tooltip.h

index f5713dab662698b4c0c87357e4a0e9ff087e1a84..e3fdb826d617eb6e50775e9b7593097676d59c26 100644 (file)
@@ -583,7 +583,7 @@ void event_property_notify (XEvent *e)
                }
                else if (at == server.atom.WM_HINTS) {
                        XWMHints* wmhints = XGetWMHints(server.dsp, win);
-                       if (wmhints->flags & XUrgencyHint) {
+                       if (wmhints && wmhints->flags & XUrgencyHint) {
                                task_urgent = tsk;
                                tick_urgent = 0;
                                time_precision = 1;
index 978982f7e6a0bfa80934e22d21b45611e5838c41..17b45580a106e04157381dc766cbdf9b6ef459a3 100644 (file)
@@ -1,6 +1,6 @@
 /**************************************************************************
 *
-* Copyright (C) 2009 Andreas.Fink85 ()
+* Copyright (C) 2009 Andreas.Fink (Andreas.Fink85@gmail.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 2
index 3e2b45942227356059305ed0c63fb736239af21f..5089ea1d94d96a7332a8e3b71ec1502f1ae64755 100644 (file)
@@ -1,3 +1,20 @@
+/**************************************************************************
+*
+* Copyright (C) 2009 Andreas.Fink (Andreas.Fink85@gmail.com)
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License version 2
+* as published by the Free Software Foundation.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+**************************************************************************/
+
 #ifndef TOOLTIP_H
 #define TOOLTIP_H
 
This page took 0.029405 seconds and 4 git commands to generate.