two nits missing in previous commit

This commit is contained in:
shadchin 2012-07-08 14:22:03 +00:00
parent 4777ba761a
commit 238484184f
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: emumb.c,v 1.12 2012/07/08 13:51:11 shadchin Exp $ */
/* $OpenBSD: emumb.c,v 1.13 2012/07/08 14:22:03 shadchin Exp $ */
/*
* Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany.
* Copyright 1993 by David Dawes <dawes@xfree86.org>
@ -291,7 +291,7 @@ wsmbEmuBlockHandler(pointer data, struct timeval **waitTime,
pointer LastSelectMask)
{
InputInfoPtr pInfo = (InputInfoPtr)data;
WSDevicePtr priv= (WSDevicePtr)pInfo->private;
WSDevicePtr priv = (WSDevicePtr)pInfo->private;
int ms;
if (priv->emulateMB.pending) {

View File

@ -13,7 +13,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $OpenBSD: ws.c,v 1.56 2012/07/08 13:51:11 shadchin Exp $ */
/* $OpenBSD: ws.c,v 1.57 2012/07/08 14:22:03 shadchin Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@ -498,12 +498,12 @@ wsReadInput(InputInfoPtr pInfo)
case WSCONS_EVENT_MOUSE_UP:
buttons &= ~(1 << event->value);
DBG(4, ErrorF("Button %d up %x\n", event->value,
buttons));
buttons));
break;
case WSCONS_EVENT_MOUSE_DOWN:
buttons |= (1 << event->value);
DBG(4, ErrorF("Button %d down %x\n", event->value,
buttons));
buttons));
break;
case WSCONS_EVENT_MOUSE_DELTA_X:
dx = event->value;