]> Dogcows Code - chaz/openbox/commitdiff
don't assert when you window_find(0)/dockapp_find(0), just return 0
authorDana Jansens <danakj@orodu.net>
Thu, 31 Jan 2008 15:18:35 +0000 (10:18 -0500)
committerDana Jansens <danakj@orodu.net>
Thu, 31 Jan 2008 17:25:31 +0000 (12:25 -0500)
openbox/dock.c
openbox/window.c

index e78c2991c62cdbac8284fee8835c70cc5bf689cf..adf61e849888c524a3dbfce389a6e64fd82022bc 100644 (file)
@@ -651,7 +651,6 @@ void dock_get_area(Rect *a)
 
 ObDockApp* dock_find_dockapp(Window xwin)
 {
-    g_assert(xwin != None);
     GList *it;
     /* there are never that many dock apps, so we can use a list here instead
        of a hash table */
index f094602cbdb26c34428a4d6eeb5bb5c22263d200..e13638e0f640bad05bc08374fc42ee6e38979c67 100644 (file)
@@ -76,7 +76,6 @@ ObStackingLayer window_layer(ObWindow *self)
 
 ObWindow* window_find(Window xwin)
 {
-    g_assert(xwin != None);
     return g_hash_table_lookup(window_map, &xwin);
 }
 
This page took 0.025213 seconds and 4 git commands to generate.