Export to GitHub

ardesia - issue #7

Annotation starting after leave_notify_event


Posted on Nov 25, 2009 by Quick Monkey

What steps will reproduce the problem? 1. Start the ardesia 2. paint 3. try to click an ardesia button inside the bar

What is the expected output? What do you see instead? I expect to push the button but the pointe is locked

I have investigate on the problem and this is cause

The new code that use the leave_notify_event from the ardesia bar such as signal to become to paint does not work in my machine

I have debugged the code and in this machine a lot of leave_notify_event are generated even if the pointer is inside the bar

To workaround this problem that can caused by a wrong use of the windows or by a gtk bug I have reputted the wait_out_bar code in annotate.c

Than we have two scenarios 1) The machine emit rightly the leave_notify_event the annotate.c check that the position is right and start to annotate

2) The machine emit worongly an leave_notify_event and ask to annotate.c to grab, but annotate.c see that the pointer is inside the bar and continue to loop waiting for the moment in which the pointer will be outside the bar Only at this moment will start to annotate

In any case is important investigate about the strange behave of the leave_notify_event because it can depend on a wrong window handling

This is only a workaround to solve fastly the problem

Comment #1

Posted on Nov 25, 2009 by Quick Monkey

This issue was closed by revision r241.

Comment #2

Posted on Sep 17, 2012 by Quick Monkey

(No comment was entered for this change.)

Status: Verified

Labels:
Type-Defect Priority-Medium