summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* explicitly request wayland-scanner featureOswald Buddenhagen2013-10-211-0/+1
| | | | | | | | | having qtbase include it for everyone is wasteful, so do it here explicitly. Change-Id: I9bf39a48fe3323aaa5471a638760ac61a61de683 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
* Use QMultiMap instead of wl_list for resourcesJan Arne Petersen2013-08-281-20/+2
| | | | | | | | | | | | Change generated code in qtwaylandscanner to generate resourceMap() methods returning a QMultiMap<wl_client*, Resource*>. Adapt code using resource lists to use the map instead. Remove Compositor::resourceForSurface(). Change-Id: Id41a1712f9c2477c1a1af843bba2795dd90391e5 Reviewed-by: Andy Nichols <andy.nichols@digia.com> Reviewed-by: Andrew Knight <andrew.knight@digia.com>
* Make test compile with Wayland 1.2Jan Arne Petersen2013-08-227-139/+288
| | | | | | | Tests still fail when running like before. Change-Id: I9c0a5e8068fa7af7abc0018e6e9c4f08aa39533b Reviewed-by: Andy Nichols <andy.nichols@digia.com>
* Update tests so that it does not deadlockJørgen Lind2013-08-025-93/+73
| | | | | | | still failes though Change-Id: I7978c752b02f32a2e2c587c0ad674c51c5e0ad22 Reviewed-by: Andy Nichols <andy.nichols@digia.com>
* Qt-ify the QtCompositor moduleAndy Nichols2013-02-083-14/+14
| | | | | | | | | | | | | | | | | | | | Currently the QtCompositor library and API do not follow the Qt API naming conventions. This commit intends to fix these inconsistencies. filenames start with q headers containing private API's end in _p public API classes begin with Q use the qt namespace macros where necessary Wayland namespace is now QtWayland wayland_wrapper classes are now private API's It's important to make these changes not just for stylistic reasons, but also because when qmake builds the module in checks for these conventions to determine how to deploy the include files. Change-Id: I8bfadeceda92a0f52cb73c704551da75540e7587 Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
* Don't build QtCompositor unless explicitly enabledAndy Nichols2013-02-051-1/+7
| | | | | | | | | | | | | The QtCompositor API is to be considered experimental in Qt 5.1 and thus it should be disabled from being built by default. If the qmake variable CONFIG contains "wayland-compositor" then the QtCompositor API will be built. Change-Id: If10f5a688749f31338a80be45bbec22a0f2d12da Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> Reviewed-by: Jørgen Lind <jorgen.lind@gmail.com> Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
* Update tests to build with wayland 1.0.0Andy Nichols2013-01-292-13/+20
| | | | | | | | | We still fail the same compositor tests, and seg fault at the begining of the client test, but this is the same behavior as with 0.95 Change-Id: I2c1af65be4239663f99848b1574d9cc88b4a5d97 Reviewed-by: Jørgen Lind <jorgen.lind@gmail.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-2513-314/+314
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ie65cbe0c622780d2f0672bce19d267d1167620ff Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Jørgen Lind <jorgen.lind@gmail.com>
* Update Wayland SHAJorgen Lind2012-08-173-3/+5
| | | | | Change-Id: I3a0adb4b935282b9bb421a87dc8241d6ea8271f0 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Compile fixesJorgen Lind2012-08-131-0/+1
| | | | | Change-Id: Ie532b5cd87dbcb9546b23c2ce7d013137933fbb8 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Introduce standard pkg-config usageDonald Carr2012-06-112-48/+8
| | | | | | | | Use our own qualified pkg-config mkspec feature rather than directly executing the system binary Change-Id: I4b162cd8d2d9a8bd5d0b3adb9ca935df9ff96a69 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Migrate from wl_input_device to wl_seatLaszlo Agocs2012-05-203-33/+96
| | | | | Change-Id: I0d218c32478c2acce4d7012bdb26b0cde50ee633 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Implemented refresh rate support.Samuel Rødal2012-05-091-1/+2
| | | | | | | | | | | Implements QWaylandScreen::refreshRate() based on the wl_output mode information we get from the compositor. In the compositor, adds API to override the refresh rate, with the default set to whatever QScreen reports on the compositor-side. Change-Id: I5f5175f2498940875c6ec68d29d25cf5993a1e65 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Start using the new wl_fixed_t type properlyLaszlo Agocs2012-05-091-2/+4
| | | | | | | | | | | | | | The mouse and touch coordinates cannot just be treated as integers anymore, they need to be converted from/to double using the helper functions. Some necessary QPoint -> QPointF changes have also been made. For the Qt-specific touch extension we will not switch to wl_fixed_t though. This is because the precision is unfortunately quite small (factor of 256 vs. 10000). Change-Id: I23deaaffe478a39495b12d336985bc62e38a6af4 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Update to wayland headLaszlo Agocs2012-05-091-1/+31
| | | | | Change-Id: Ie012861bc40e3bc448d85c9d8c27f798434020ed Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Sync up with the latest wayland developments.Hannu Lyytinen2012-04-194-15/+22
| | | | | | | | | | This commit makes the qtwayland module compatible with wayland sha1 677c5180e67be18b7a0867fafb7f205b57a6e9ff. Change-Id: I5af0510034b7e4a038313b80f1f6e0b18fa48eb3 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com> Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Updated SHA-1 in wayland_sha1.txt to one against which qtwayland builds.Samuel Rødal2012-04-111-1/+0
| | | | | | | | | | Prevents following error: wayland-util.h:152: error: ‘size_t’ does not name a type Some <string.h> includes are also not necessary any more. Change-Id: I0846948ba32d32521b0749b616eea3cad0ed3383 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Update wayland_sha1 and implement buffer_pool interfaceJørgen Lind2012-04-108-169/+18
| | | | | Change-Id: I0628a7655a6deb061a5d0b6c6304c89d8655cf11 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fixed mockshell error in client auto testAndy Nichols2012-03-301-1/+1
| | | | | Change-Id: Ibcb6bd807d281fbc14c35c98f4dabd4d7f82077b Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Introduced WaylandClient API to keep track of clients.Samuel Rødal2012-03-291-0/+27
| | | | | | | | | Makes it easier to keep track of which surfaces belong to a given client, and the client associated with a given surface. WaylandClient is an opaque type, representing an underlying wl_client *. Change-Id: If21a2e02eb13a860e6ac641875bdcca67a53fdf5 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Make the module not depend on QtBase configureJørgen Lind2012-03-122-19/+42
| | | | | | | | This is convenient if we want to reconfigure without reconfiguring QtBase. Change-Id: I719ba0d89905287a557e962ed6d804514e44b7f5 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Added missing header for client autotest.Samuel Rødal2012-03-121-0/+62
| | | | | Change-Id: Iabfaf1b570be7a2082f15fc25d5e715a9613b4d7 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Added testing of QBackingStore backend in wayland plugin.Samuel Rødal2012-03-076-36/+110
| | | | | Change-Id: I4db26cbee88f329a926914ff878e6efa9b0c8395 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Added testing of key events to client auto test.Samuel Rødal2012-03-074-2/+56
| | | | | | | | This requires passing on the native key code as well when calling into QWindowSystemInterface from QWaylandInputDevice. Change-Id: Iea1f98dcc9e050bb42cc48927da17aa54085a5e8 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Get rid of dummy source update functions and debug output.Samuel Rødal2012-03-071-6/+1
| | | | | | | | The source update callbacks are unnecessary since change d224714afd087cc73d8 in wayland. Change-Id: Iac2266621b8739464077d9aa8f9292e06e9b4b35 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Added auto-test for wayland plugin.Samuel Rødal2012-03-0711-1/+1355
| | | | | | | | | Similar to the compositor auto-test, except this time we mock the compositor, and test the client code, by forcing the wayland plugin to be used. Change-Id: I363019ff7e136db6822993f1881fec48a02a7db4 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Fixed build of compositor auto test.Samuel Rødal2012-03-061-1/+8
| | | | | Change-Id: I1b61f48c964ac4d3eb07be99f4ab7602d7181524 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Added auto-test for WaylandCompositor.Samuel Rødal2012-03-058-0/+607
Change-Id: I2fda66c30736218ee847d9f6827709507c84c301 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>