By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 1583
Collapse All | Expand All

(-)a/krfb/krfb/rfbcontroller.cc (-4 / +20 lines)
Lines 286-291 PointerEvent::PointerEvent(int b, int _x, int _y) : Link Here
286
		initialized = true;
286
		initialized = true;
287
		dpy = tqt_xdisplay();
287
		dpy = tqt_xdisplay();
288
		buttonMask = 0;
288
		buttonMask = 0;
289
290
		// Set up default map in case XGetPointerMapping fails
291
		for (int i=0; i<MAX_BUTTONS; i++) {
292
			map[i] = i+1;
293
		}
294
		XGetPointerMapping(dpy, map, MAX_BUTTONS);
289
	}
295
	}
290
}
296
}
291
297
Lines 293-307 void PointerEvent::exec() { Link Here
293
	TQDesktopWidget *desktopWidget = TQApplication::desktop();
299
	TQDesktopWidget *desktopWidget = TQApplication::desktop();
294
300
295
	int screen = desktopWidget->screenNumber();
301
	int screen = desktopWidget->screenNumber();
296
	if (screen < 0)
302
	if (screen < 0) {
297
		screen = 0;
303
		screen = 0;
304
	}
298
	XTestFakeMotionEvent(dpy, screen, x, y, CurrentTime);
305
	XTestFakeMotionEvent(dpy, screen, x, y, CurrentTime);
299
	for(int i = 0; i < 5; i++)
306
	for(int i = 0; i < MAX_BUTTONS; i++) {
300
		if ((buttonMask&(1<<i))!=(button_mask&(1<<i)))
307
		if ((buttonMask&(1<<i))!=(button_mask&(1<<i))) {
308
			int localButton = i+1;
309
			for (int j=0; j<MAX_BUTTONS; j++) {
310
				if (map[j] == localButton) {
311
					localButton = j+1;
312
					break;
313
				}
314
			}
301
			XTestFakeButtonEvent(dpy,
315
			XTestFakeButtonEvent(dpy,
302
					     i+1,
316
					     localButton,
303
					     (button_mask&(1<<i))?True:False,
317
					     (button_mask&(1<<i))?True:False,
304
					     CurrentTime);
318
					     CurrentTime);
319
		}
320
	}
305
321
306
	buttonMask = button_mask;
322
	buttonMask = button_mask;
307
}
323
}
(-)a/krfb/krfb/rfbcontroller.h (-1 / +3 lines)
Lines 36-42 Link Here
36
36
37
#include <X11/Xlib.h>
37
#include <X11/Xlib.h>
38
38
39
39
#define MAX_BUTTONS 5
40
40
41
class TQCloseEvent;
41
class TQCloseEvent;
42
class TQClipboard;
42
class TQClipboard;
Lines 82-87 class PointerEvent : public VNCEvent { Link Here
82
	static bool initialized;
82
	static bool initialized;
83
	static Display *dpy;
83
	static Display *dpy;
84
	static int buttonMask;
84
	static int buttonMask;
85
86
	unsigned char map[MAX_BUTTONS];
85
public:
87
public:
86
	PointerEvent(int b, int _x, int _y);
88
	PointerEvent(int b, int _x, int _y);
87
	virtual void exec();
89
	virtual void exec();

Return to bug 1583