Juergen Vigna <[EMAIL PROTECTED]> writes:

>> Index: WorkArea.h
>> ===================================================================
>> RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/WorkArea.h,v
>> retrieving revision 1.30
>> diff -u -p -r1.30 WorkArea.h
>> --- WorkArea.h  13 Mar 2002 12:25:35 -0000      1.30
>> +++ WorkArea.h  18 Mar 2002 14:54:29 -0000
| [snip]
>> Does it?
>
| Well if I could apply it I could try it out! In the meantime do you
| want me to apply it by hand?

better now?

Index: src/WorkArea.h
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/WorkArea.h,v
retrieving revision 1.30
diff -u -p -r1.30 WorkArea.h
--- src/WorkArea.h	13 Mar 2002 12:25:35 -0000	1.30
+++ src/WorkArea.h	18 Mar 2002 15:44:24 -0000
@@ -132,7 +132,7 @@ public:
 	SigC::Signal0<void> selectionLost;
  
 	/// handles SelectionRequest X Event, to fill the clipboard
-	void event_cb(XEvent * xev);
+	int event_cb(XEvent * xev);
 private:
 	///
 	void createPixmap(int, int);
Index: src/WorkArea.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/WorkArea.C,v
retrieving revision 1.63
diff -u -p -r1.63 WorkArea.C
--- src/WorkArea.C	13 Mar 2002 12:25:35 -0000	1.63
+++ src/WorkArea.C	18 Mar 2002 15:44:24 -0000
@@ -71,8 +71,8 @@ extern "C" {
 	static
 	int C_WorkAreaEventCB(FL_FORM * form, void * xev) {
 		WorkArea * wa=static_cast<WorkArea*>(form->u_vdata);
- 		wa->event_cb(static_cast<XEvent*>(xev));
-		return 0;
+ 		return wa->event_cb(static_cast<XEvent*>(xev));
+		//return 0;
 	}
 }
 
@@ -564,18 +564,23 @@ extern "C" {
 
 } // namespace anon
 
-void WorkArea::event_cb(XEvent * xev)
+
+int WorkArea::event_cb(XEvent * xev)
 {
+	int ret = 0;
 	switch (xev->type) {
 		case SelectionRequest:
 			lyxerr[Debug::GUI] << "X requested selection." << endl;
 			selectionRequested.emit();
+			ret = 1;
 			break;
 		case SelectionClear:
 			lyxerr[Debug::GUI] << "Lost selection." << endl;
 			selectionLost.emit();
+			ret = 1;
 			break; 
 	}
+	return ret;
 }
 
 

-- 
        Lgb

Reply via email to