summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add more files to the ignore list.v5.0.0-beta1Pier Luigi Fiorini2012-08-271-1/+20
| | | | | | | | This improves reading the git status output a lot because it gets really big once you build the qtwayland module. Change-Id: Ic7d7c1fe73eccef4802fb6198c6c8caefa7a3e23 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Fix mouse input in WaylandSurfaceItem.Pier Luigi Fiorini2012-08-271-4/+8
| | | | | | | | | Mouse input is fixed by passing global coordinates to the mouse events, now windows can be moved by a QML-based compositor. Also, all the mouse buttons are accepted. Change-Id: Ib4cdca047ffffcc2a89a23847c813d34387ca591 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* qtwayland: correct order of parameters in setMouseFocus()Elvis Lee2012-08-201-1/+1
| | | | | | | | Examined it's callers in qtwayland. And it's supposed that there is no extenal callers, not in qtwayland. Change-Id: Id9b42b03e0718f27dc7be3f987bb077092d3a06f Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Update Wayland SHAJorgen Lind2012-08-177-7/+12
| | | | | Change-Id: I3a0adb4b935282b9bb421a87dc8241d6ea8271f0 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Do not pass texture ownership to scenegraph in WaylandSurfaceItemLaszlo Agocs2012-08-171-1/+1
| | | | | | | | | | | | | | | | Doing so breaks many simple cases of GL rendering where there is one attach followed by multiple damages. Letting SG destroy the GL texture when deleting the old QSGTexture instance is wrong and results in showing nothing but the very first frame on the screen. Also, SurfaceBuffer does delete the GL texture upon destruction so the ownership should stay with it. This reverts c1ee015bab06e82bccbb723b522c185a8188cab5, not sure why the change was introduced in the first place. Change-Id: Ie91574daadeeb7214a55f8e32c10d0a316c0e2c8 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Fix qtwayland build with QT_NO_ACCESSIBILITYLaszlo Agocs2012-08-171-0/+6
| | | | | Change-Id: Ib5fea95a37d2e4309e68e04320ba6ad097128a66 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Wheel event support in WaylandSurfaceItemLaszlo Agocs2012-08-172-0/+9
| | | | | Change-Id: Ib3988b09ccb2eea998108cbb41d4edc25ce123bb Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Add sendConfigure() for WaylandSurfaceElvis Lee2012-08-172-0/+8
| | | | | | | | | If compositor calls directly setSize() for surface, it changes only the size of the surface's boundary. If it is needed to change the contents of the surface synchronously, send_configure() must be called. Change-Id: I9c607b57c6d31d4ada6621dc57063f36f24b9d95 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Add support for loading theme plugins.Pier Luigi Fiorini2012-08-162-0/+16
| | | | | | | | Use QGenericUnixTheme to return a list of themes and create new QPlatformTheme objects. Change-Id: Iaac113aad3bc088f51695c224433287701113960 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Make the gl integrations use the same build options as the config testsJorgen Lind2012-08-138-9/+50
| | | | | Change-Id: I3efbd0c87c19c8ff2c382c56d2ca34bbe2e7033d Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Compile fixesJorgen Lind2012-08-132-1/+2
| | | | | Change-Id: Ie532b5cd87dbcb9546b23c2ce7d013137933fbb8 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Create platform plugin binary into the local plugins directory.Pier Luigi Fiorini2012-08-131-1/+1
| | | | | | | | | | | Set DESTDIR to $$QT.compositor.plugins/platforms in order to create the plugin binary into the local plugins directory. When building Linux packages you usually are in a chroot environment and can't write files outside your build directory, this change avoid permission errors. Change-Id: I3e518f20308b852f4de6a5355af60fc67681cace Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* qwindow-compositor: Fix background image drawingLaszlo Agocs2012-08-131-2/+5
| | | | | | | | | | Make it work correctly with -nofullscreen and prevent it from being shown upside-down (hard to notice with the default background image but becomes obvious when replacing background.jpg with something else) Change-Id: I372ba16818dd452c965febd551da0e35d114b920 Reviewed-by: Elvis Lee <kwangwoong.lee@lge.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* follow rename of qt_module_config.prf to qt_module.prfOswald Buddenhagen2012-08-111-1/+1
| | | | | Change-Id: Iba6a04a12450ef81635bc76e72d737c67cc5f096 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Need to NULL check for parent() in parentSurface()Elvis Lee2012-08-101-1/+1
| | | | | Change-Id: I7252a616e8243074cfba8a473869fb91f84a60a6 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Set default background image for QWidgetCompositorElvis Lee2012-08-033-1/+8
| | | | | | | This is helpful for seeing cursor. Change-Id: I1356be8ffb725af303ef4a13503843bbeae0e071 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Correct background's coordinatesElvis Lee2012-07-312-9/+25
| | | | | | | | | Background has been rendered from (0, 0), so it didn't reprensent boundary of qwindowcompositor correctly when using -nofullscreen. And make background'size equal to window size on constructing. Change-Id: I2bcdc350c1e8ebccdb19c69211afecf5d59000ea Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Handle events coming from show() properly in qwindow-compositorLaszlo Agocs2012-07-251-2/+2
| | | | | | | | | | | By not having the event handler set up properly before calling show() we lose the expose events for platforms that send a sync expose from setVisible (the default QPlatformWindow implementation). On platforms like xcb this was not visible because the expose came later, but with kms the initial expose was lost completely. Change-Id: I16848be35f4d07df8053c66f7d39633a23e45df3 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Fix fall out from shell protocol changeLaszlo Agocs2012-07-252-4/+4
| | | | | | | | Compositors were crashing every time a new surface having the transient parent set was created. Change-Id: I3c5c0d8ca34c6739f7886281f17d1a8b0aa1c7cb Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Fix libxkbcommon config testLaszlo Agocs2012-07-251-1/+0
| | | | | | | | | Including the qnamespace.h caused a compilation error and so xkbcommon support was disabled all the time. Including that header is not necessary in the first place. Change-Id: I1ff1155d6b10a6cceaaf9117bb3eb74e88fde49d Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Fix brcm_egl test to not link against QtAndy Nichols2012-07-192-7/+18
| | | | | Change-Id: I734d9f6b1120f5d0d5751069c6b6f551172aca50 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Revert "Suppress QWindowSystemInterface inclusion warnings."Stephen Kelly2012-07-1811-11/+11
| | | | | | | | | This reverts commit c269b748bd1f14207cf600ad5cb75a21a5e824a4. QWindowSystemInterface is not part of QPA anymore. Change-Id: I372646bda5b4ea7f1ea2bcf775873b1596c07091 Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
* Config tests for gl integrationJorgen Lind2012-07-1712-79/+299
| | | | | Change-Id: Ie7d80e7591d11aa5df87ca5d5de4cd6c03928c83 Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
* use centralized handling of QT_BUILD_PARTSOswald Buddenhagen2012-07-111-24/+1
| | | | | Change-Id: I3cf1aeeec697f39ec5fa21fe84731b12c36d54f1 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update wayland shaJorgen Lind2012-07-064-13/+5
| | | | | Change-Id: Icf48c40b4d078b13c4132e52d351a22395d4ca76 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Use the new QPlatformNativeInterface native resource function getterJørgen Lind2012-07-051-4/+9
| | | | | Change-Id: I5b4e0a48247573e3fc03a87a53c02fa5b5a984d9 Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
* Fix QPA plugin metadata changeJorgen Lind2012-07-051-1/+1
| | | | | Change-Id: I4f56aba2d42f2f9b469bdcd8cf4312fee93ab911 Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
* Still support building with pri filesJorgen Lind2012-07-052-2/+2
| | | | | Change-Id: I1f537b8dc69359ab250b972b21673b2b4499843e Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
* Suppress QWindowSystemInterface inclusion warnings.Girish Ramakrishnan2012-07-0311-11/+11
| | | | | | | | | | Since QWindowSystemInterface is now part of QPA API. The correct inclusion is: #include <qpa/qwindowsysteminterface.h> #include <qpa/qwindowsysteminterface_p.h> Change-Id: I9f5eafbd67fac3ed144f85c37943e5e1bae5a18e Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* build system cleanupsOswald Buddenhagen2012-06-277-25/+3
| | | | | | | | | | | | | | | - load(qt_module) => load(qt_build_config) - remove: - CONFIG+=module (obsolete) - code relating to module version headers (automated now) - %mastercontent assignment (automated now) - QT_BUILD_*_LIB defines (automated now) - pointless QPRO_PWD assignments - qmake -project boilerplate - dead code Change-Id: Ia515c3cc40170e3b99b0bfd04c10637d49f9b99f Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* switch to new-style configure testsOswald Buddenhagen2012-06-275-9/+7
| | | | | Change-Id: I70f4f4e81a042a977748dbb42b069b3706829828 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* auto-generate module prisOswald Buddenhagen2012-06-274-27/+5
| | | | | Change-Id: I4f5c243d01f1b00f7cced6487dd4a5fa4fb072e4 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Set cloexec in shm bufferLaszlo Agocs2012-06-231-2/+8
| | | | | Change-Id: If3d1920fe253d3de43aeef77afeb92f7624c6ba0 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Destroy shell surfaces on client sideLaszlo Agocs2012-06-222-0/+6
| | | | | | | Otherwise we get the usual delete_id for live object warnings with Weston. Change-Id: I4c24cec6522ea9f501495d4f5e29f9725976f202 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Properly reset keyboard focus in qwindow-compositor when hidingLaszlo Agocs2012-06-192-2/+21
| | | | | | | | | Surfaces with null buffer attached should be handled similarly to destroyed surfaces. qtwayland makes sure the focus surface is reset, if needed, but it's up to qwindow-compositor to pick a new one. Change-Id: I68ec7fe3fe3e2795ae52ef60d9343cb527205c68 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Follow protocol changes in pointer attachLaszlo Agocs2012-06-196-19/+39
| | | | | Change-Id: I68b480b7feea814f79997c6a39e4567c3a990f47 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fix broken handling of inactive transient surfacesLaszlo Agocs2012-06-1810-7/+38
| | | | | | | | | Makes tooltips and tooltip-like components like Create's locator show up properly. These should never get keyboard focus even though they are regular surfaces like any other. Change-Id: I0ade61845d9785cad19040683362a5532a04e6f6 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fix global coordinate translation in clientsLaszlo Agocs2012-06-181-2/+2
| | | | | | | | Widget apps had certain components, like context menus, popping up at somewhat off positions. This was caused by a local-global mismatch. Change-Id: Ia87be2419b4686c54852eb87640079ab262146cc Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fix output geometry in qwindow-compositorLaszlo Agocs2012-06-181-0/+4
| | | | | Change-Id: I99989faca2c5e13df85accdcdacd5cc616b43ba1 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fix build when QtQuick is not availableLaszlo Agocs2012-06-182-8/+13
| | | | | Change-Id: I112e8fd8bf9181b4cb72bb9f99be958bd7499e3d Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Map function keys properlyLaszlo Agocs2012-06-181-13/+10
| | | | | Change-Id: I3a13e0f05a3504e4d7b7f13c29ace139f88041e5 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Introduce standard pkg-config usageDonald Carr2012-06-119-114/+24
| | | | | | | | 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>
* Reset keyboard focus when a surface is destroyedLaszlo Agocs2012-06-111-2/+6
| | | | | | | | Only pointer focus was reset, resulting in undefined behavior when acessing keyboardFocus() after all surfaces had gone away. Change-Id: I8c9f71e2eadbf69de1dc7856f4a05dd309ab95eb Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Decouple application activation from onscreen_visibility.Gunnar Sletta2012-06-111-3/+0
| | | | | | | | | | | The application will be made active when it has focus. This is already handled in the qwaylandinputdevice.cpp's handling of input which posts window activation to Qt and internally Qt will send application activation when a window is in fact active. Change-Id: I5adb4c76830096bb362489b7de18ed188fbed05d Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Rebase Add-thread-affinity-to-wayland-clients.patchAndy Nichols2012-06-071-38/+39
| | | | | | | The patch now applies cleanly to the tested wayland sha. Change-Id: I7e24fcd34a5a53816d6a75611cd99a0ce9179e20 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fix "make install" to not build examples and testsAndy Nichols2012-06-061-1/+2
| | | | | | | | Before this commit, make install would always end up building the examples and tests, even if qtbase was configured not to. Change-Id: I898e1125a343a8e2749a055f4bd886256026de9d Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Don't build qwidget compositor when qt is configured with -no-widgetsAndy Nichols2012-06-061-1/+5
| | | | | Change-Id: Ie7952d83527015996fe678ccd68d2984b0119858 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Implemented orientationUpdateMask support in WaylandSurface.Samuel Rødal2012-06-0611-1/+88
| | | | | | | Used to find out whether the client wants orientation updates. Change-Id: Ibefc98df7b346cbfe13cb021c932dab3d6c5d758 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* A few fixes to prevent compositor crashesAndy Nichols2012-06-063-12/+19
| | | | | | | | | | | | | If a client application exits abruptly while in direct rendering mode, the surface buffer could reference a null buffer. We now check for this before attempting to use such a surface buffer. It is also possible for WaylandSurfaceNode::preprocess to be called after WaylandSurfaceItem has called surfaceDestroyed, so now we check for a valid surface in preprocess as well. Change-Id: Ibca71349b7a24687944f8b6cd505941b580e0c2a Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Avoid burning cpu in qwindow-compositor with glx and nvidiaLaszlo Agocs2012-06-051-2/+1
| | | | | Change-Id: I2da069c7fd12b26b2811b59ec66418865bcbe962 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>