After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 633222 - add a GtkWidget::contains-pointer property
add a GtkWidget::contains-pointer property
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-10-26 22:20 UTC by Matthias Clasen
Modified: 2015-08-16 22:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (11.09 KB, patch)
2010-10-26 22:20 UTC, Matthias Clasen
none Details | Review
some half-baked patch I had (21.50 KB, patch)
2010-10-27 00:59 UTC, Havoc Pennington
none Details | Review

Description Matthias Clasen 2010-10-26 22:20:15 UTC
Created attachment 173291 [details] [review]
patch

Here is a very sketchy patch to start on this. No attempt is made yet to handle grabs or leave events correctly.

It adds two properties, ::contains-pointer and ::picked, which both count the number of pointing devices that are in the widget or its children, or directly in the widget, respectively. These are counters instead of booleans to handle multiple devices.
Comment 1 Havoc Pennington 2010-10-27 00:59:48 UTC
Created attachment 173297 [details] [review]
some half-baked patch I had

This patch doesn't compile or work, but maybe has some interesting ideas.