summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Use Q_SIGNALS and Q_SLOTS instead of signals: slots:Jørgen Lind2015-08-2811-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the compositor apis Change-Id: I0b90843647cbea3e3db22386bfba769db5602d86
| * | | | Add missing functions in QWaylandKeyboardJørgen Lind2015-08-281-0/+18
| | | | | | | | | | | | | | | | | | | | Change-Id: Idb0a3c37668be8eacac1a6e19b4a649bedec107a
| * | | | Rename QWaylandPointer::currentView to mouseFocusJørgen Lind2015-08-285-7/+7
| | | | | | | | | | | | | | | | | | | | Change-Id: Ia6c5d96186c8877a51df8541c95b5ccad04a3eb0
| * | | | Mouse mouseFocus handling to the QWaylandInputDeviceJørgen Lind2015-08-2814-102/+381
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This because both the touch interface and pointer interface depends on it Change-Id: I64718e0db87085c656250a22107715ddb68bc9ae
| * | | | Public input apisJørgen Lind2015-08-2849-975/+1461
| | | | | | | | | | | | | | | | | | | | Change-Id: I60ec2fd9f4afe54198d9c476b28f9f15a661e9ca
| * | | | Rework how we manage extensionsJørgen Lind2015-08-2855-914/+757
| | | | | | | | | | | | | | | | | | | | Change-Id: If2cbf096e7419bc1bda007d5167ce39d1a5d50ae
| * | | | Allow CurrentPosition to not having a current viewJørgen Lind2015-08-281-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QWindowCompositor isn't to causious about mouse grabbing, and segfaults if resizing stops when mouse cursor is outside of the window Change-Id: I227df4d63e41f18024776c7d6e2e5de19ee48fbc
| * | | | Default shell surface view to the primaryOutput of the surfaceJørgen Lind2015-08-281-0/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Ifeaafadb7d90256e282891047364b6fa9a95d66a
| * | | | Introducing QWaylandOutputSpaceJørgen Lind2015-08-2829-161/+633
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Its purpose is to make it possible to have multiscreen environments, and also multiple multioutput environments It is also an abstraction to make it clear that outputs are arranged in a 2d space Change-Id: I418509996a03b2ca1a12aec9c9e25e143a15a10f
| * | | | Move the output from QWaylandSurface to the QWaylandSurfaceViewJørgen Lind2015-08-2824-210/+393
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and add a property called primaryOutput on the QWaylandSurface. Also add some bookkeeping in QtWayland::Output so it knows what surfaces and views it currently holds, sending the enter and leave events automatically. Change-Id: Ib6efbc6f8157657fb4451b751bba1cb5345b7906
| * | | | Move the texture ownership from the QWaylandSurfaceJørgen Lind2015-08-2822-534/+376
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to the respective QWaylandSurfaceView. For all GL applications this will have no significant impact, but will cause a memory regression for shm surfaces with multiple views. This is done to simplify the creation and destruction of textures, especially in multi-threaded environments. Also the same patch removes the y_inverted property and replaces it with a origin property. Its done in the same patch as a lot of the code was overlapping. Change-Id: I4bce50c614c9ac3ba0580e0560339476eac03433
| * | | | Reset when the mousefocus surface is destoryedJørgen Lind2015-08-281-1/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: Ibc50d08b4aace996d9f0eec5c6083b1255ae1723
| * | | | Destory QWaylandOutput instance when the window is destroyedJørgen Lind2015-08-282-0/+10
| | | | | | | | | | | | | | | | | | | | Change-Id: Ib79ac0e6c539f997549225594b8756fbb95170c3
| * | | | Remove releaseSurfaces function from QWayland::SurfaceJørgen Lind2015-08-283-7/+0
| | | | | | | | | | | | | | | | | | | | Change-Id: I3e5ed3233f74c98bffd7064d70d076ecaa129d7e
| * | | | QWaylandOutput send mode and geometry correctlyJørgen Lind2015-08-284-0/+81
| | | | | | | | | | | | | | | | | | | | Change-Id: I3be8394ad25958f29d4fccc09472355f1560b4ea
| * | | | WaylandCursorItemJørgen Lind2015-08-285-16/+232
| | | | | | | | | | | | | | | | | | | | Change-Id: Ic6edf6d6e723b8f62e61855958a455096f094c5e
| * | | | Add a inputEventsEnabled property on QWaylandSurfaceItemJørgen Lind2015-08-282-7/+53
| | | | | | | | | | | | | | | | | | | | Change-Id: I118cac0aef15db9f2cac51918d29329918810711
| * | | | QWaylandInput add a sendMouseEnter and sendMouseLeaveJørgen Lind2015-08-287-2/+47
| | | | | | | | | | | | | | | | | | | | Change-Id: I713c9ab2f0edaa4346ff021764de6a23201bbf68
| * | | | Put the pointers current view and current possition into a separate classJørgen Lind2015-08-282-16/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also, if the current mouse coordinate ends on the boundary of the surface, then subtract 0.01 from the mouse coordinate. This is to work around Qt's mouse event propogation which is QRectF::contains which is including the boundary, and Wayland which uses a strict contains. We cant just discard events since Qt handles also enter/leave and clicking state etc. Change-Id: I919651232a5027b9fe0cb15b6838d3b1fee682df
| * | | | Add a qml url resolver class for QWaylandQuickCompositorPluginJørgen Lind2015-08-281-8/+25
| | | | | | | | | | | | | | | | | | | | Change-Id: I233a5a9de1455714109ae6000cdd7df9fcffb977
| * | | | Make it possible to set a QWaylandSurface on the QWaylandSurfaceViewJørgen Lind2015-08-2817-43/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow us to use QWaylandSurfaceItem from within QML Change-Id: I6ecfbf3a5de5f5a748a6a85295b9741316fef976
| * | | | make yInverted a property of qwaylandsurfaceJørgen Lind2015-08-281-0/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I4c90149e0b56df3f6718620e80443d50ac10439b
| * | | | Deprecate the cursor change request and make it a signalJørgen Lind2015-08-283-3/+17
| | | | | | | | | | | | | | | | | | | | Change-Id: Icafab695071259e2112e9742ba46a19c1dc74586
| * | | | Make it possible for the WaylandCompositor items to store ComponentsJørgen Lind2015-08-281-0/+9
| | | | | | | | | | | | | | | | | | | | Change-Id: I0d1d9f51f8b283b8089a36805dc7b20f121cb010
| * | | | WaylandSurfaceChrome update for posInRootJørgen Lind2015-08-281-3/+15
| | | | | | | | | | | | | | | | | | | | Change-Id: I37c55cf96ddc6ddd173f850dd4acc1856a752601
| * | | | Make it possible for QWaylandSurfaceItem to children of arbitrary itemsJørgen Lind2015-08-2810-26/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The main problem is that the position of the QWaylandSurfaceItem is changed through the position of the views setPos function. However, it might be that we don't want the surface position to map it directly. Rename QWaylandSurfaceView::setPos to setRequestedPos Then let the compositors choose what to do with this position Change-Id: I43c74baad688d2f3e49ca091bbf436c718e81318
| * | | | Make the attach offset available through a signal on QWaylandSurfaceJørgen Lind2015-08-284-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This can then be picked up by ie. the shell_surface which can adjusts its view accordingly Change-Id: Iee3efa243c59b259834e599312d687401528e9c4
| * | | | Add WaylandOutputWindow itemJørgen Lind2015-08-285-1/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and add a convenience getter on the QWaylandQuickSurface to retrieve the window. This is because the window typically in qml will have additional properties which we want to retrieve. Instead of doing surface.output.window we can now do surface.outputWindow which looks cleaner Change-Id: Ia3007583a8a0e8e01444cb3f8819fbc651be14ab
| * | | | Update compositor apiJørgen Lind2015-08-285-5/+349
| | | | | | | | | | | | | | | | | | | | Change-Id: Id8f1843116ecd3770260b2737527b4c278a849d6
| * | | | Initialize shellsurface pointerJørgen Lind2015-08-281-0/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I05bac886146be66a82dcb5f7a3e57bb5eba1d65c
| * | | | Make QWaylandsurface::output a propertyJørgen Lind2015-08-283-0/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: I2c82466b0e3842da901449d7978683922331d05e
| * | | | Add qml plugin for conveniently creating compositors in qmlJørgen Lind2015-08-285-0/+142
| | | | | | | | | | | | | | | | | | | | Change-Id: I76229c38489d6c72dfad9eace38cd8b6fd03dcae
| * | | | Add a shellView property on QWaylandSurfaceJørgen Lind2015-08-288-0/+38
| | | | | | | | | | | | | | | | | | | | Change-Id: I68d05698b3caed11ccec39ef06ac5f912d782cf2
| * | | | QWaylandCompositor make some functionality available from qmlJørgen Lind2015-08-281-6/+7
| | | | | | | | | | | | | | | | | | | | Change-Id: Idb84b75da2374ecd8c72e14857018d4965f0a927
| * | | | Optionally auto send framecallbacks for QWaylandQuickOutputJørgen Lind2015-08-282-0/+26
| | | | | | | | | | | | | | | | | | | | Change-Id: Ic668b1fe88a536af553cfaf8b515219d2dae0f7d
| * | | | Make it possible to add the default shell from qmlJørgen Lind2015-08-282-1/+38
| | | | | | | | | | | | | | | | | | | | Change-Id: I00f01a42b98dbe76851800b87a725fcca16f824e
| * | | | Make it optional to register the QWaylandQuick types to qmlJørgen Lind2015-08-282-4/+41
| | | | | | | | | | | | | | | | | | | | Change-Id: Ic50e3516e435a354ad478349d9af86a5a112f5c7
| * | | | add properties for QWaylandOutput ::compositor and ::windowJørgen Lind2015-08-281-0/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I704ee2f1b305aa2d3cd040140c8f0c228718b924
| * | | | Make QWaylandCompositor::primaryOutput a Q_PROPERTYJørgen Lind2015-08-282-0/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: I2a5c9556549fa3dbc4ad8b399a32266acbcc712b
| * | | | Make QWaylandCompositor inherit QObjectJørgen Lind2015-08-286-40/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And remove the constructor arguments, and just having parent as a constructor argument. This requires QWaylandCompositor to have a create semantic familiar from QWindow and QOpenGLContext. On create the native wayland socket is created and initialized. Also the virtual functions surfaceCreated and surfaceAboutToBeDestroyed have been converted to signals, removing the need to subclass QWaylandCompositor Examples have been changed to avoid having two super classes inheriting QObject. This is done by either making the QWindow subclass a member or making the QWaylandCompositor a member. Change-Id: I317d37e2adca15bfe4e1904e20ab0d83943b2d45
| * | | | Add createSurface factory function on QWaylandCompositorJørgen Lind2015-08-285-30/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This simplifies subclassing the compositor getting Change-Id: I392b84febae62df042b23fa806360bc068bf984f
| * | | | Make QWaylandOutput::handle constJørgen Lind2015-08-283-7/+6
| | | | | | | | | | | | | | | | | | | | Change-Id: I880cb15e056de4f6f5dcf97ea570d7bfb625c294
| * | | | Move surface management to outputsJørgen Lind2015-08-2812-59/+149
| | | | | | | | | | | | | | | | | | | | Change-Id: I427e576a4e0834d6266af2670f7ff47e078153d4
| * | | | Add QT_X_NAMESPACE defines to qwaylandoutput.cppJørgen Lind2015-07-291-0/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: Iabe2146772e2abfab108fad22e6884ee63afe40f
| * | | | Fix some wrong licenses in QtWaylandClientJørgen Lind2015-07-244-108/+84
| | | | | | | | | | | | | | | | | | | | Change-Id: I8d5e88e9b296276c6d9d570b3e5e704f32298d83
| * | | | LGPL v3 license change for Qt Wayland CompositorJørgen Lind2015-07-24119-2857/+2542
| | | | | | | | | | | | | | | | | | | | Change-Id: I84ed248b471464214d935352768f300d4b90dec3
* | | | | Merge remote-tracking branch 'origin/5.6' into devLiang Qi2015-12-0127-278/+84
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/client/qwaylanddisplay_p.h Change-Id: I602b90a055d1322af369fb7b77a68583154b660f
| * | | | Get rid of the egl config test and use what qtbase providesLaszlo Agocs2015-11-1112-23/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contains(QT_CONFIG, egl) and CONFIG += egl is the only sane way to test for and pull in EGL headers and libs. This is particularly important when trying to be robust and guard against half-broken sysroots on embedded where a naive PKGCONFIG += egl breaks. Also add an EGL_WAYLAND_BUFFER_WL define to keep wayland-egl compiling. We are not testing for that in any config tests may cause a failure in sysroots that have parts of Mesa thrown in but pick ip an older EGL header from the vendor's driver. Change-Id: I7b7e6a7a91e78dbda5b6954ad08761298c538efc Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
| * | | | RPi: Resolve all BRCM functions dynamicallyLaszlo Agocs2015-11-115-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Directly calling eglCreateGlobalImageBRCM and friends is not ideal due to the messy RPi distro setups: shipping Mesa (sw rasterizer only) in standard locations may cause picking up those EGL/GLES libs instead of the Broadcom ones from /opt/vc when building Qt. While this is something that should be fixed in the sysroot (since it is a problem at runtime anyway), let's make life easier by resolving via eglGetProcAddress, which is the right approach in any case. Change-Id: I73f7698b638691d97743a6f819bc7c8ee6ebd245 Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
| * | | | Fix compiler warnings.Friedemann Kleint2015-11-052-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qwaylandinputcontext.cpp:57:16: warning: unused parameter 'sym' [-Wunused-parameter] qwaylanddatadevice.cpp:173:135: warning: 'dragData' may be used uninitialized in this function [-Wmaybe-uninitialized] Change-Id: Id654360fd9b7fdb572565ad39b664af3355b5e79 Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>