X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=mod_tiling%2Fplacement.c;h=7e45806830e4c285415ab32e31eb05a3a0582055;hb=ae4260bb64817c11f9a7140324cd3e3ba113e297;hp=07de5f47d7db138837dec53db8c83732c41cecdd;hpb=803afbc1cd633f6c025bcd9537e9b7e9aedadd0d;p=ion3.git diff --git a/mod_tiling/placement.c b/mod_tiling/placement.c index 07de5f4..7e45806 100644 --- a/mod_tiling/placement.c +++ b/mod_tiling/placement.c @@ -3,10 +3,7 @@ * * Copyright (c) Tuomo Valkonen 1999-2007. * - * 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 @@ -72,16 +69,14 @@ static bool placement_mrsh_extl(ExtlFn fn, WTilingPlacementParams *param) WPHolder *tiling_prepare_manage(WTiling *ws, const WClientWin *cwin, - const WManageParams *mp, int redir) + const WManageParams *mp, int priority) { + int cpriority=MANAGE_PRIORITY_SUBX(priority, MANAGE_PRIORITY_NORMAL); WRegion *target=NULL; WTilingPlacementParams param; WPHolder *ph; bool ret; - - if(redir==MANAGE_REDIR_STRICT_NO) - return NULL; - + param.ws=ws; param.reg=(WRegion*)cwin; param.mp=mp; @@ -95,7 +90,7 @@ WPHolder *tiling_prepare_manage(WTiling *ws, const WClientWin *cwin, target=(WRegion*)param.res_frame; - ph=region_prepare_manage(target, cwin, mp, redir); + ph=region_prepare_manage(target, cwin, mp, cpriority); if(ph!=NULL) return ph; } @@ -108,6 +103,6 @@ WPHolder *tiling_prepare_manage(WTiling *ws, const WClientWin *cwin, return NULL; } - return region_prepare_manage(target, cwin, mp, redir); + return region_prepare_manage(target, cwin, mp, cpriority); }