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 707474 - Extend MetaCursorTracker with stuff
Extend MetaCursorTracker with stuff
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: wayland
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
wayland
Depends on:
Blocks:
 
 
Reported: 2013-09-04 14:58 UTC by Giovanni Campagna
Modified: 2013-09-09 16:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
MetaCursorTracker: extend with query pointer abilities (3.11 KB, patch)
2013-09-04 14:58 UTC, Giovanni Campagna
committed Details | Review
MetaCursorTracker: add methods for setting the cursor visibility (2.07 KB, patch)
2013-09-04 14:58 UTC, Giovanni Campagna
committed Details | Review
MetaCursorTracker: extend with query pointer abilities (wayland side) (4.23 KB, patch)
2013-09-04 15:15 UTC, Giovanni Campagna
committed Details | Review
MetaCursorTracker: add methods for setting the cursor visibility (wayland side) (2.63 KB, patch)
2013-09-04 15:15 UTC, Giovanni Campagna
committed Details | Review

Description Giovanni Campagna 2013-09-04 14:58:43 UTC
Asked by Jasper reviewing the wip/wayland branch of gnome-shell.
First patches are for master, then for wayland.
Comment 1 Giovanni Campagna 2013-09-04 14:58:45 UTC
Created attachment 254097 [details] [review]
MetaCursorTracker: extend with query pointer abilities

We need an abstraction in gnome-shell for XQueryPointer, and
MetaCursorTracker seems a good place for it.
Comment 2 Giovanni Campagna 2013-09-04 14:58:49 UTC
Created attachment 254098 [details] [review]
MetaCursorTracker: add methods for setting the cursor visibility

clutter_stage_show_cursor()/hide_cursor() only works in the X11
backend (where someone else is in charge of showing the cursor),
and even then, it has confusing effects when running nested wayland,
so an abstraction layer is needed.
Comment 3 Jasper St. Pierre (not reading bugmail) 2013-09-04 15:02:46 UTC
Review of attachment 254097 [details] [review]:

OK.

::: src/core/meta-cursor-tracker.c
@@ +27,3 @@
+ * @short_description: Mutter cursor tracking helper. Originally only
+ *                     tracking the cursor image, now more of a "core
+ *                     pointer abstraction"

Hey now. I thought you said you would also capture those "cursor moved" events in XI2.4 or whatever here to replace PointerWatcher.

(I'd remove the "Originally only" part. Seems a bit superfluous for somebody looking at the gtk-doc)
Comment 4 Jasper St. Pierre (not reading bugmail) 2013-09-04 15:03:15 UTC
Review of attachment 254098 [details] [review]:

You might want to double-check this one, kiddo. :)

::: src/core/meta-cursor-tracker.c
@@ +306,3 @@
+                      tracker->screen->xroot);
+  else
+    XFixesShowCursor (tracker->screen->display->xdisplay,

You might want to double-check this one, kiddo.
Comment 5 Giovanni Campagna 2013-09-04 15:15:15 UTC
Created attachment 254104 [details] [review]
MetaCursorTracker: extend with query pointer abilities (wayland side)

We need an abstraction in gnome-shell for XQueryPointer, and
MetaCursorTracker seems a good place for it.
Comment 6 Giovanni Campagna 2013-09-04 15:15:32 UTC
Created attachment 254105 [details] [review]
MetaCursorTracker: add methods for setting the cursor visibility (wayland side)

clutter_stage_show_cursor()/hide_cursor() only works in the X11
backend (where someone else is in charge of showing the cursor),
and even then, it has confusing effects when running nested wayland,
so an abstraction layer is needed.
Comment 7 Jasper St. Pierre (not reading bugmail) 2013-09-04 15:17:42 UTC
Review of attachment 254105 [details] [review]:

OK.
Comment 8 Jasper St. Pierre (not reading bugmail) 2013-09-04 15:20:55 UTC
Review of attachment 254104 [details] [review]:

Looks good.
Comment 9 Giovanni Campagna 2013-09-04 15:21:52 UTC
Attachment 254097 [details] pushed as 3053cc0 - MetaCursorTracker: extend with query pointer abilities
Attachment 254098 [details] pushed as 6327b8d - MetaCursorTracker: add methods for setting the cursor visibility

Let's get the easy stuff out first.
Comment 10 Giovanni Campagna 2013-09-09 16:04:54 UTC
git-bz bah...