X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=panel%2Fp_move.c;h=3818e8cba860c773c3f1606128497c545abc5632;hp=3bc6328fa6c6ec63355a5e4d3c2f2d902e3acaf9;hb=55ccd2b959766810cf7db8d1c4462f338ce0afc8;hpb=0eb88fc5281804773e2a0c7a488a4452463535ce diff --git a/panel/p_move.c b/panel/p_move.c index 3bc6328f..3818e8cb 100644 --- a/panel/p_move.c +++ b/panel/p_move.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998 Free Software Foundation, Inc. * + * Copyright (c) 1998-2000,2005 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -36,19 +36,21 @@ */ #include "panel.priv.h" -MODULE_ID("$Id: p_move.c,v 1.3 1999/09/29 15:22:32 juergen Exp $") +MODULE_ID("$Id: p_move.c,v 1.9 2005/02/19 16:46:49 tom Exp $") -int -move_panel(PANEL *pan, int starty, int startx) +NCURSES_EXPORT(int) +move_panel(PANEL * pan, int starty, int startx) { - WINDOW *win; + T((T_CALLED("move_panel(%p,%d,%d)"), pan, starty, startx)); - if(!pan) - return(ERR); - if(_nc_panel_is_linked(pan)) - PANEL_UPDATE(pan,(PANEL*)0); - win = pan->win; - if(mvwin(win,starty,startx)) - return(ERR); - return(OK); + if (!pan) + returnCode(ERR); + + if (IS_LINKED(pan)) + { + Touchpan(pan); + PANEL_UPDATE(pan, (PANEL *) 0); + } + + returnCode(mvwin(pan->win, starty, startx)); }