don't assert when you window_find(0)/dockapp_find(0), just return 0
This commit is contained in:
parent
90ca468efa
commit
d81c4be600
2 changed files with 0 additions and 2 deletions
|
@ -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 */
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue