diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-31 10:18:35 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-31 12:25:31 -0500 |
| commit | d81c4be6001a711e9f0dea247f43d8de670bc27f (patch) | |
| tree | bd5773436a057e99605e33a26a00597725faa3ec | |
| parent | 90ca468efa678428f655765ffb0190da2a41b23c (diff) | |
don't assert when you window_find(0)/dockapp_find(0), just return 0
| -rw-r--r-- | openbox/dock.c | 1 | ||||
| -rw-r--r-- | openbox/window.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/openbox/dock.c b/openbox/dock.c index e78c2991..adf61e84 100644 --- a/openbox/dock.c +++ b/openbox/dock.c @@ -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 */ diff --git a/openbox/window.c b/openbox/window.c index f094602c..e13638e0 100644 --- a/openbox/window.c +++ b/openbox/window.c @@ -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); } |
