]> git.decadent.org.uk Git - ion3.git/blobdiff - mod_query/input.c
Imported Upstream version 20090110
[ion3.git] / mod_query / input.c
index 57a23c53ee26b07db2292bd8dc84bd51b2f135dd..de81c770a15fcbd53a7798270a7f7053bc95eb17 100644 (file)
@@ -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 <libmainloop/defer.h>
@@ -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;
 }