summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Bind texture in WaylandSurfaceItem::updateTextureAndy Nichols2012-06-041-0/+1
| | | | | | | | | | This avoids a race condition where we delete the resource behind the texture before we get a chance to upload it. Change-Id: I19d126ecf3fcb5141c6630cd8e783647ea6a779c Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Bump shaLaszlo Agocs2012-06-044-14/+62
| | | | | | | | | | | keyboard_modifiers is not yet sent from server side (in qt-compositor) on keyboard focus, this needs to be added later. Unfortunately the event is somewhat libxkbcommon-specific... Also move/removed some unused variables. Change-Id: Id971bdc3a0e217740593d23145fc4ebb27d99a06 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Fix no-xkb buildLaszlo Agocs2012-06-011-1/+1
| | | | | Change-Id: I02b49ae845921d6b0eafc367849a99a0a7702ee9 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Use QPointer instead of QWeakPointer for tracking QObjects.Stephen Kelly2012-05-311-2/+2
| | | | | Change-Id: I842906ffcc37e6649d947cef3a0d9ea942b14d05 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* added two missing #include <unistd.h> (for int close(int);)Thomas Senyk2012-05-302-0/+3
| | | | | Change-Id: I9f32108a9a5d758c8dd23be5d72900e7ea7c271b Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Make sendOnScreenVisibility invokableGunnar Sletta2012-05-291-1/+1
| | | | | Change-Id: I78b3576c60b02fc62df1201bc797b08dcd536b50 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fixed client side issues due to threading bugs.Samuel Rødal2012-05-255-1/+21
| | | | | | | | | Our threading support depends on the hardware integration and on support in libwayland. Change-Id: Ic69bc4616e279c1986576d8c034db52402cb9c41 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com> Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
* Fixed qml-compositor warning and sizing when running as windowed.Samuel Rødal2012-05-252-1/+2
| | | | | Change-Id: Ic5b58cb1761e74408bd44a048e487617d59ee72d Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Reset the keyboard and pointer focus when attaching a null bufferLaszlo Agocs2012-05-231-0/+8
| | | | | | | | | | | | | | | Improve QMenu/QMenuBar usability with keyboard: We really do not want the keyboard focus to remain on hidden windows. For example when opening a menu and pressing escape the focus must not be left on the (existing, but hidden) menu widget's window. This isn't perfect (ideally the compositor implementations should be able to control this somehow by deciding to which window return the focus to when the focused window goes away) but is better than nothing and is identical to what Weston does. Change-Id: Iad963182b74903cc3843460641611467db3c02ef Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Added config.test for brcm_egl.Samuel Rødal2012-05-215-5/+83
| | | | | Change-Id: Ia103645ba0823dc94b42578de1f1e39e7dd84956 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Use a lookup table instead of an incomplete switch when mapping keysLaszlo Agocs2012-05-211-39/+87
| | | | | Change-Id: Ie9b8325a2235ec1c2fe988f0e81efd241b1ef21b Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Added maximize and window closing behavior to qml-compositor.Samuel Rødal2012-05-217-21/+180
| | | | | Change-Id: I13ebfa400d8ce669bf45ee533a2aa9a7190421d5 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Position windows with transient parents properlyLaszlo Agocs2012-05-213-6/+11
| | | | | | | | | | | | | | | | Both the transient position calculation and the global mouse position had to be fixed. Combo box contents, menus, etc. will now all appear at the correct position. With qwindow-compositor they will keep the proper position even when the parent is moved via the decoration. Not sure how this could be achieved with weston as there is no notification when the window is dragged with Super+Mouse. Nevertheless the initial position will be correct. Change-Id: I66eca9faa930af71b9b540018d5057af7f5f22e5 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* qwindow-compositor: Avoid stuck alt when running non-fullscreenLaszlo Agocs2012-05-212-0/+17
| | | | | Change-Id: I9d2129e2e746704f1fc0e8f6243fe3b8b7224456 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Fix clipboard crash in clients with westonLaszlo Agocs2012-05-211-2/+7
| | | | | | | | | The offer passed to selection() can be null. This case was not handled before because it never happens with qt-compositor. Copy/paste is still not ok with weston but at least the apps won't crash. Change-Id: I91d529e9d8b179724637d05bb9b95ec5843bda2b Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Fix stuck modifier keysLaszlo Agocs2012-05-212-27/+13
| | | | | | | | | | Storing the modifier state as a member is not needed. Updating it in the keyboard_enter does not make sense as the xkb state can only change in the key event handler. The logic for updating the modifiers was somewhat broken. Change-Id: I7d9378af6f3775a6954a9747cab0e93a549fa62a Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Make axis events compatible with WestonLaszlo Agocs2012-05-202-3/+5
| | | | | | | | From now on mouse wheel events will work both with qt-compositor and Weston. Change-Id: I54876cd45f3530ea9b4b7962ca52c0974e1cb2d5 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Register QTouchDevice only when the seat is touch-capableLaszlo Agocs2012-05-201-5/+8
| | | | | Change-Id: Ibddfaa2f07b9cd2eae2e133b01d4e5669ced2af8 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Migrate from wl_input_device to wl_seatLaszlo Agocs2012-05-2014-442/+743
| | | | | Change-Id: I0d218c32478c2acce4d7012bdb26b0cde50ee633 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Implemented graceful quitting of clients.Samuel Rødal2012-05-198-2/+40
| | | | | | | Send a quit message to let the client shut down cleanly. Change-Id: I5f99c9b92341fdb5f1b171f6fe36f26bf8a47026 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* BRCM EGL integration to handle eglCreateGlobalImageBRCM.Samuel Rødal2012-05-1815-0/+1303
| | | | | | | | | For hardware accelerated multiprocess compositing on the raspberry pi. Change-Id: Ieb46aa7306587f89fea87098227a520f18f959a7 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com> Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com> Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
* Fixed context sharing in wayland_egl backend.Samuel Rødal2012-05-182-2/+21
| | | | | | | Properly implement isSharing() and isValid(). Change-Id: I7ec9bd8a1e6d4af87a418568f1d5d18a9153eafc Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>