summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2009-12-07 19:45:37 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2009-12-07 19:45:37 +0000
commit9bdae93036cb14d17a53c570c51d47e9fbed4017 (patch)
tree77c29ac6604ecde7e14f14988413067020c785ca
parentfc3db209b2e917c334341db1ee5d5aae75b4a64a (diff)
we already have sc from the passed cc, so just used that instead.
ok oga@
-rw-r--r--app/cwm/kbfunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/kbfunc.c b/app/cwm/kbfunc.c
index 7ee690255..a0fb4f68c 100644
--- a/app/cwm/kbfunc.c
+++ b/app/cwm/kbfunc.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: kbfunc.c,v 1.45 2009/12/07 19:44:31 okan Exp $
+ * $Id: kbfunc.c,v 1.46 2009/12/07 19:45:36 okan Exp $
*/
#include <paths.h>
@@ -49,7 +49,7 @@ kbfunc_moveresize(struct client_ctx *cc, union arg *arg)
int x, y, flags, amt;
u_int mx, my;
- sc = screen_current();
+ sc = cc->sc;
mx = my = 0;
flags = arg->i;