bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mouse handling doesn't looks correct


From: Pavel Stehule
Subject: mouse handling doesn't looks correct
Date: Mon, 25 Jan 2021 18:42:36 +0100

Hi

I try to implement drag support for my ncurses application. I found an example

https://gist.github.com/sylt/93d3f7b77e7f3a881603#file-ncurses_mouse_movement-c

It worked almost well, with two exceptions.

When I use the mouse wheel, the mouse is in some strange state, and when I try to move with the mouse, then it generates events like the left button is pressed, but no button is pressed. After left click the behaviour is returned to normal.

Second issue, that I can see, are a few false events. Although I did only mouse move, it generates the same mouse event like mouse click.

Name         : ncurses
Version      : 6.2
Release      : 3.20200222.fc33
Architecture : x86_64
Size         : 608 k
Source       : ncurses-6.2-3.20200222.fc33.src.rpm
Repository   : @System
From repo    : anaconda
Summary      : Ncurses support utilities
URL          : https://invisible-island.net/ncurses/ncurses.html
License      : MIT

Is there some way to implement drag correctly?

Regards

Pavel Stehule

reply via email to

[Prev in Thread] Current Thread [Next in Thread]