]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - panel/p_move.c
ncurses 5.3
[ncurses.git] / panel / p_move.c
index 3bc6328fa6c6ec63355a5e4d3c2f2d902e3acaf9..d7dbd2eafc3f04e66db9168a44a8dce12a16ad40 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright (c) 1998 Free Software Foundation, Inc.                        *
+ * Copyright (c) 1998,2000 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            *
  */
 #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.7 2001/02/24 23:41:35 tom Exp $")
 
-int
-move_panel(PANEL *pan, int starty, int startx)
+NCURSES_EXPORT(int)
+move_panel (PANEL *pan, int starty, int startx)
 {
-  WINDOW *win;
-
   if(!pan)
     return(ERR);
-  if(_nc_panel_is_linked(pan))
+
+  if (IS_LINKED(pan)) {
+    Touchpan(pan);
     PANEL_UPDATE(pan,(PANEL*)0);
-  win = pan->win;
-  if(mvwin(win,starty,startx))
+  }
+
+  if (mvwin(pan->win,starty,startx))
     return(ERR);
+
   return(OK);
 }