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 762820 - Remove "core_pointer" from the GdkDisplay struct
Remove "core_pointer" from the GdkDisplay struct
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-02-28 14:30 UTC by Paolo Borelli
Modified: 2016-03-10 06:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gdkwindow: get the pointer device from the default seat (983 bytes, patch)
2016-02-28 14:30 UTC, Paolo Borelli
accepted-commit_now Details | Review
gdkdisplay: get the pointer device from the default seat (2.24 KB, patch)
2016-02-28 14:30 UTC, Paolo Borelli
accepted-commit_now Details | Review
broadway: get the core pointer from the device manager (7.01 KB, patch)
2016-02-28 14:30 UTC, Paolo Borelli
accepted-commit_now Details | Review
quartz: get the core pointer from the device manager (1.38 KB, patch)
2016-02-28 14:30 UTC, Paolo Borelli
accepted-commit_now Details | Review
gdk: remove the core_pointer field from GdkDisplay (5.33 KB, patch)
2016-02-28 14:30 UTC, Paolo Borelli
accepted-commit_now Details | Review
quartz: Get core pointer from device manager (6.59 KB, patch)
2016-03-10 06:13 UTC, Philip Chimento
committed Details | Review

Description Paolo Borelli 2016-02-28 14:30:16 UTC
This patch sets tries to cleanup all backends to not need display->core_pointer
anymore. The same core device can be obtained from the device manager and the
seat, so I think we should try to clean things up to make all this less confusing.

Note: I can only test the x11 and win32 backends
Comment 1 Paolo Borelli 2016-02-28 14:30:21 UTC
Created attachment 322580 [details] [review]
gdkwindow: get the pointer device from the default seat
Comment 2 Paolo Borelli 2016-02-28 14:30:27 UTC
Created attachment 322581 [details] [review]
gdkdisplay: get the pointer device from the default seat
Comment 3 Paolo Borelli 2016-02-28 14:30:33 UTC
Created attachment 322582 [details] [review]
broadway: get the core pointer from the device manager
Comment 4 Paolo Borelli 2016-02-28 14:30:38 UTC
Created attachment 322583 [details] [review]
quartz: get the core pointer from the device manager
Comment 5 Paolo Borelli 2016-02-28 14:30:44 UTC
Created attachment 322584 [details] [review]
gdk: remove the core_pointer field from GdkDisplay

It is not used anymore, so no need to set it
Comment 6 Matthias Clasen 2016-02-29 03:45:55 UTC
Review of attachment 322580 [details] [review]:

Looks fine
Comment 7 Matthias Clasen 2016-02-29 03:47:19 UTC
Review of attachment 322581 [details] [review]:

sure
Comment 8 Matthias Clasen 2016-02-29 03:53:15 UTC
Review of attachment 322582 [details] [review]:

ok
Comment 9 Matthias Clasen 2016-02-29 03:54:46 UTC
Review of attachment 322583 [details] [review]:

Looks ok
Comment 10 Matthias Clasen 2016-02-29 03:56:36 UTC
Review of attachment 322584 [details] [review]:

ok
Comment 11 Paolo Borelli 2016-02-29 13:19:33 UTC
thanks for the review. I pushed everything, but as mentioned I have no idea how to test some of the backends. If there are problems ping me.
Comment 12 Philip Chimento 2016-03-10 06:11:30 UTC
Paolo, ping - this broke compilation of the Quartz backend. GdkDisplay->core_pointer is still used in gdkevents-quartz.c. Here's a patch that just copies what you did in gdkdisplay-quartz.c, it seems to work but I'm not too familiar with this part of the code.
Comment 13 Philip Chimento 2016-03-10 06:13:01 UTC
Created attachment 323589 [details] [review]
quartz: Get core pointer from device manager

Some spots missed in the earlier refactor removing core_pointer from
the GdkDisplay struct.
Comment 14 Paolo Borelli 2016-03-10 06:24:26 UTC
Thanks for fixing this up. Please push
Comment 15 Philip Chimento 2016-03-10 06:42:41 UTC
Attachment 323589 [details] pushed as b3860e4 - quartz: Get core pointer from device manager