X-Git-Url: https://git.decadent.org.uk/gitweb/?p=ion3.git;a=blobdiff_plain;f=mod_query%2Finput.c;h=de81c770a15fcbd53a7798270a7f7053bc95eb17;hp=57a23c53ee26b07db2292bd8dc84bd51b2f135dd;hb=e3aec18706513a87eaa7839dfdaf7e0fcd0d8d2a;hpb=de22e45179cb3bafa490294d31d47f361047a30a diff --git a/mod_query/input.c b/mod_query/input.c index 57a23c5..de81c77 100644 --- a/mod_query/input.c +++ b/mod_query/input.c @@ -1,12 +1,9 @@ /* * ion/mod_query/input.c * - * Copyright (c) Tuomo Valkonen 1999-2007. + * Copyright (c) Tuomo Valkonen 1999-2009. * - * Ion is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or - * (at your option) any later version. + * See the included file LICENSE for details. */ #include @@ -79,10 +76,14 @@ void input_refit(WInput *input) } -void input_fitrep(WInput *input, WWindow *par, const WFitParams *fp) +bool input_fitrep(WInput *input, WWindow *par, const WFitParams *fp) { + if(par!=NULL && !region_same_rootwin((WRegion*)input, (WRegion*)par)) + return FALSE; input->last_fp=*fp; input_do_refit(input, par); + + return TRUE; }