summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* Handle changeCursor in QWindowCompositorJørgen Lind2012-01-102-0/+14
| | | | | | Change-Id: I8ef3b9b36aad00177170f98bcc5c832f884bab04 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Handle mouse focus in the QWindowCompositorJørgen Lind2012-01-101-0/+1
| | | | | | Change-Id: Ibb994eb8b9e2c69aecdee7daf704475d4d84b183 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Add a function to the compositor api to send full touch eventsLaszlo Agocs2012-01-101-6/+3
| | | | | | | | | | | | | | | A simple sendTouchPointEvent(id, x, y, ...) type of function will not be sufficient in the future due to the amount of data in a touch event; therefore an additional sendFullTouchEvent is introduced. This function takes a QTouchEvent and posts a series of down, motion, up, frame events as needed. In the future it may be changed so that it maps to a protocol extension instead of the standard events. As an example qwindow-compositor is updated to use this new function. Change-Id: I39d3df1c6d4868364440f59789d01fc5b7b80dac Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Add an option to qwindow-compositor for disabling random positioningLaszlo Agocs2012-01-101-2/+6
| | | | | | | | | | When passing -stickytopleft all surfaces will be shown at position 0,0 instead of picking a random one. This is useful for apps with one single large window in combination with -nofullscreen. Change-Id: I0834c43981a2d2c7b9796e273ac0eb0cfd738132 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Use QOpenGLFunctions in qwindow-compositor.Laszlo Agocs2012-01-092-4/+4
| | | | | | | | To keep it building with desktop OpenGL. Change-Id: I82685926461fc3249ed7a53e741b653273fe6f5c Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Remove logging of key presses in qwindow-compositor.Laszlo Agocs2012-01-091-2/+2
| | | | | | Change-Id: I505b262687bb32853a69c4dccb79a05f68b1dced Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Have a crack at fixing setGeometry calls.Robin Burchell2012-01-061-4/+6
| | | | | | | | | Commit a5ce91c023aeb433f1b5b792291a88c9a5683955 removed setGeometry, so let's make an effort at still functioning. Change-Id: Iaae877a2312712ba63aa94a8ae3a3939554c5592 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Add isYInverted property with notificationPaul Olav Tvete2012-01-051-1/+9
| | | | | | Change-Id: I6a835a2be4513fa6c24f172503669bc3c95fad0b Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Remove QSize from surfaceMapped signal.Robin Burchell2012-01-051-3/+3
| | | | | | | | Commit 6307ca5e22d81da9a39289c2cca9165fea81b3a5 removed this from the signal, so we must follow suit. Change-Id: I4073cfb7e9f6c722c1ac097e3d939767868027cb Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Remove the geometry from the wayland surfaceJørgen Lind2012-01-042-46/+46
| | | | | | | | | and add pos and size properties instead. The pos is a PointF while the size is a integer based Size since pos can be transformed, while the size reffers to the pixel size. Change-Id: I5d84aa6661405cb0df356b787246d0d73ad0c503 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Make it possible to drag windows aroundJørgen Lind2012-01-042-11/+42
| | | | | | | while holding the windows key down. Change-Id: I1b5cd7fb39b5ec0ead6a4c312b4bb653a0191a00 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Implement subsurfaces extensionJørgen Lind2012-01-0413-319/+525
| | | | | | | | | | | | This allows you to have subwindows in the compositor. We tried to experiment with composing subsurfaces client side, but the architecture did not feel very lean. This however, requires the compositor to compose each surface before drawing the surface. The example compositors render the subsurfaces into the wl_surfaces texture. This might not be a good idea. Change-Id: I6e186b62d7b490de7f4e6c6f22fcf6c1e0a70df3 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Add mouse move events to the window compositorJørgen Lind2012-01-041-0/+7
| | | | | Change-Id: Iacdfbd55feb5db4d38eac6e2729684052a46afa9 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Remove the size from the mapped signalJørgen Lind2012-01-044-14/+14
| | | | | Change-Id: I4b49e115c569cab580665040cc9b173c697b1fcc Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Added surface_extension and output_extensionJørgen Lind2011-12-201-1/+1
| | | | | | | | | | This is an atempt on removing WindowManagerIntegration and create more specialised extensions. Hopefully it will reduce tha "map lookups" we have all because of the windowmanagerintegration is way to generic, and hopefully it will make it easier to ready and understand the code Change-Id: I126c430e87909e4520f6d241c0a6023214cb509a Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Restore retained selection support in qt-compositor.Laszlo Agocs2011-12-161-0/+2
| | | | | Change-Id: I20fdffacd4f62d2e7083c269c7f82c059f3e24fc Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Remove unused headerJørgen Lind2011-12-091-1/+0
| | | | | Change-Id: I54c0840a5b6f198ca9619d6888e506daa4b66df8 Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
* Make qwindow-compositor work without opengl module dependency.Laszlo Agocs2011-12-072-6/+38
| | | | | Change-Id: Icb05b076b46dfbf36154343083bd332a4d9a7468 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* I removed the qwidget-compositor-mdi.proJørgen Lind2011-12-071-0/+27
| | | | | | | I cant revert the patch, so I just have to add it. Change-Id: I05531ca973ada7043f39c46faccc35ffd6800bf9 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Add comments to example pro file to explain how to include priJørgen Lind2011-12-073-0/+11
| | | | | Change-Id: Ic5cb0aff2bf70158905a8d6c4487670ce76c9355 Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Make wayland actually a moduleJørgen Lind2011-12-079-57/+46
| | | | | | | | | Also fix so that QtCompositor can be built as shared object. + fix so that the default QT_WAYLAND_GL_CONFIG is wayland_egl Change-Id: I02b72e99286584426bd37ab2d00bbc84af11efdc Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* Make it possible to run qwindow-compositor in non-fullscreen.Laszlo Agocs2011-12-062-12/+6
| | | | | | | Also remove some leftovers from the pro file. Change-Id: Ic4f461054855d7e5b9ea907818f2c58565f6ea3b Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
* Updated to head of Wayland, but did not fix clipboard or dndJørgen Lind2011-11-301-0/+1
| | | | | Change-Id: I9f4d4101947b2cc64b52eed070d3a37c00ab07da Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
* qwindow-compositor: Do a render on expose.Laszlo Agocs2011-11-251-0/+3
| | | | | Change-Id: Ic2941a389de6f8aeaf74a86ce09ecf4616b390cc Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Get rid of QOpenGLContext dependency in WaylandCompositor constructor.Samuel Rødal2011-11-014-7/+7
| | | | | | | | | | Now WaylandSurface::texture() takes a QOpenGLContext * instead. This prevents a crash in qml-compositor against wayland_egl, since the context was 0 (it's created behind the scenes by scene graph at a later point). Change-Id: Ia02f596922ad0edea602dfe12b411ec827d47669 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
* Rename QSG* to QQuick* in qtwayland moduleAndy Nichols2011-10-261-7/+7
| | | | | Change-Id: I6029550cb9a892795d0db9aafea59801a1de3c68 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Add basic key, mouse, touch event support to qwindow-compositor.Laszlo Agocs2011-10-242-4/+88
| | | | | | | | This brings the capabilities of this compact and lean compositor example up to the level of the old qwidget-based one. Change-Id: I58eae567e64e1f06432d23bd7d24579efb36eb84 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Do not leak textures in qwindow-compositor.Laszlo Agocs2011-10-241-1/+3
| | | | | | | | When drawing images coming via SHM the OpenGL texture was never deleted, causing a leak of a texture on every update. Change-Id: Ic40198a5a8369a273c046a186a82d69597ea5c0c Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fix mirrored Y coordinates in qwindow-compositor.Laszlo Agocs2011-10-241-4/+4
| | | | | Change-Id: I432aa2fdf231301fda99b68e863ecc964c550781 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Avoid qwindow-compositor crash on startup due to missing background.Laszlo Agocs2011-10-243-6/+7
| | | | | | | | Include background.jpg as a resource. This way it will be found always. Change-Id: I859a01b97fc81b704f8c632aab546b4b9905c375 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Some small improvements to qwindow-compositor.Samuel Rødal2011-10-074-6/+17
| | | | | | | Change-Id: I497def3e500116d3cc2850e4cc4e3ea4055de6cb Reviewed-on: http://codereview.qt-project.org/6222 Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com> Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Cleaned up project filesAndy Nichols2011-09-132-6/+6
| | | | | Removed references to Widgets module that is not needed anymore. Also make qml-compositor deployable with make install.
* Compile fixesPaul Olav Tvete2011-09-081-1/+1
|
* Change the install path for qwindow-compositor exampleAndy Nichols2011-09-071-1/+1
|
* Merge branch 'refactor' of scm.dev.nokia.troll.no:qt-compositor/mainline ↵Andy Nichols2011-08-311-1/+5
|\ | | | | | | into refactor
| * Renaming mesa_egl to wayland_eglJørgen Lind2011-08-311-1/+5
| | | | | | | | and a compile fix for qwidget compositor
* | Enables semi-transparent clients in QWindow CompositorAndy Nichols2011-08-312-10/+15
|/
* Merge branch 'refactor' of scm.dev.nokia.troll.no:qt-compositor/mainline ↵Andy Nichols2011-08-312-71/+74
|\ | | | | | | into refactor
| * Added buffer releaseJørgen Lind2011-08-312-71/+74
| | | | | | | | | | | | Also Removed the touch stuff from the widget compositor Also fixed a multiple inheritance problem in widget compositor Also Removed some stupid pkg-config variable for includes hack
* | Initial commit of QWindow based compositorAndy Nichols2011-08-318-0/+406
|/
* Fixed build and crash issues.Samuel Rødal2011-08-291-10/+4
|
* make compositor build with refactor - frameSwapped slot addedMatthew Cattell2011-08-181-4/+10
|
* Merge remote branch 'origin/master' into refactorSamuel Rødal2011-08-054-7/+7
|\
| * Updated according to ShaderEffectItem -> ShaderEffect API changes.Samuel Rødal2011-08-053-7/+7
| |
| * Add root-level .pro filesLasse Holmstedt2011-07-291-0/+0
| | | | | | | | | | So that you can build from the root. By default, examples are not built.
* | Merge branch 'master' into refactorLaszlo Agocs2011-07-272-8/+1
|\| | | | | | | | | Conflicts: examples/qml-compositor/qml-compositor.pro
| * Fix qwidget example build with regular Qt5.Laszlo Agocs2011-07-261-0/+1
| |
| * clean up the QT+= stuff in the project filesOswald Buddenhagen2011-07-193-12/+0
| | | | | | | | | | | | so that we don't have to inject privates from the outside. after recent cleanups, only qtcore and qtopengl privates are necessary, and that only in the compositor api.
* | Add drag'n'drop and basic cursor support.Laszlo Agocs2011-07-251-11/+54
| |
* | Merge branch 'master' into refactorLaszlo Agocs2011-07-193-2/+82
|\| | | | | | | | | | | | | | | | | Conflicts: examples/qwidget-compositor-mdi/main.cpp src/qt-compositor/hardware_integration/mesa_egl/mesaeglintegration.cpp src/qt-compositor/hardware_integration/xcomposite_glx/xcompositeglxintegration.cpp src/qt-compositor/qt-compositor.pri src/qt-compositor/wayland_wrapper/wlsurface.h