- if(!pan)
- return(ERR);
- if(_nc_panel_is_linked(pan))
- _nc_override(pan,P_TOUCH);
- win = pan->win;
- if(mvwin(win,starty,startx))
- return(ERR);
- getbegyx(win, pan->wstarty, pan->wstartx);
- pan->wendy = pan->wstarty + getmaxy(win);
- pan->wendx = pan->wstartx + getmaxx(win);
- if(_nc_panel_is_linked(pan))
- _nc_calculate_obscure();
- return(OK);
+ T((T_CALLED("move_panel(%p,%d,%d)"), (void *)pan, starty, startx));
+
+ if (pan)
+ {
+ GetHook(pan);
+ if (IS_LINKED(pan))
+ {
+ Touchpan(pan);
+ PANEL_UPDATE(pan, (PANEL *) 0);
+ }
+ rc = mvwin(pan->win, starty, startx);
+ }
+ returnCode(rc);