profile/ivi/qtwayland.git
12 years agoFixed compile error (the old Status #define).
Samuel Rødal [Thu, 6 Oct 2011 08:24:05 +0000 (10:24 +0200)]
Fixed compile error (the old Status #define).

Change-Id: I650085e7e95c8b561e2e114937576e032cffb383
Reviewed-on: http://codereview.qt-project.org/6221
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>

12 years agoSome small improvements to qwindow-compositor.
Samuel Rødal [Thu, 6 Oct 2011 09:45:49 +0000 (11:45 +0200)]
Some small improvements to qwindow-compositor.

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>

12 years agoBe nice to implementations in wayland_egl backend.
Samuel Rødal [Thu, 6 Oct 2011 09:46:23 +0000 (11:46 +0200)]
Be nice to implementations in wayland_egl backend.

Set the texture filtering modes so the implementation doesn't have to.

Change-Id: I5515d61b7a04a9b242039012fc66d26dce7737ec
Reviewed-on: http://codereview.qt-project.org/6223
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>

12 years agoRename qt-compositor.pro -> qtwayland.pro
Rohan McGovern [Wed, 28 Sep 2011 23:42:22 +0000 (09:42 +1000)]
Rename qt-compositor.pro -> qtwayland.pro

Follow the typical qmake naming scheme of <directoryname>.pro.

Change-Id: I4dce85d1f64a9385079a675dfc1e8e1f31483a15
Reviewed-on: http://codereview.qt-project.org/5760
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
12 years agoUse the new page flipping API
Paul Olav Tvete [Thu, 22 Sep 2011 13:48:47 +0000 (15:48 +0200)]
Use the new page flipping API

Change-Id: I99bdbcef9395747ccd550e693bc6b84eccc54a40
Reviewed-on: http://codereview.qt-project.org/5392
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agoSet the correct buffer pointer (protected member variables are evil).
Samuel Rødal [Tue, 13 Sep 2011 20:59:54 +0000 (22:59 +0200)]
Set the correct buffer pointer (protected member variables are evil).

Change-Id: I6cdd64fbee5a9b46b44d8fadfc0f443dd1f4b140
Reviewed-on: http://codereview.qt-project.org/4862
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Reviewed-on: http://codereview.qt-project.org/5380
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
12 years agoFixed XComposite hardware integration in wayland plugin.
Samuel Rødal [Wed, 14 Sep 2011 12:10:05 +0000 (14:10 +0200)]
Fixed XComposite hardware integration in wayland plugin.

We should set both the pixmap and window bits for XComposite to work on
a stricter EGL / GLX implementation.

Change-Id: Ie1be44ebcc68fed87f48c74dffd887ffae1189d5
Reviewed-on: http://codereview.qt-project.org/4893
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
Reviewed-on: http://codereview.qt-project.org/5381

12 years agoAdd missing license headers.
Jason McDonald [Thu, 8 Sep 2011 01:44:29 +0000 (11:44 +1000)]
Add missing license headers.

Change-Id: I3ea0028dbf712b569ca00646098a729d3ac40717
Reviewed-on: http://codereview.qt-project.org/4379
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lasse Holmstedt
Reviewed-on: http://codereview.qt-project.org/5069
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
12 years agoUse QPlaftormInputContextFactory to load input context in Wayland plugin
Joona Petrell [Tue, 13 Sep 2011 08:32:41 +0000 (11:32 +0300)]
Use QPlaftormInputContextFactory to load input context in Wayland plugin

Change-Id: Icd1d934463b550f0fcdf7d58df7c4fd1acb77ad8
Reviewed-on: http://codereview.qt-project.org/4740
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-on: http://codereview.qt-project.org/5068
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
12 years agoFixed qml-compositor failing on XComposite EGL / GLX.
Samuel Rødal [Wed, 14 Sep 2011 15:56:50 +0000 (17:56 +0200)]
Fixed qml-compositor failing on XComposite EGL / GLX.

We also need to make sure that the QWindow has actually been created at
this point, before creating a child window to be used as the fake root
for composited windows.

12 years agoDon't call glDeleteTextures() when texture_id is 0.
Samuel Rødal [Wed, 14 Sep 2011 13:55:05 +0000 (15:55 +0200)]
Don't call glDeleteTextures() when texture_id is 0.

12 years agoFixed XComposite hardware integration.
Samuel Rødal [Wed, 14 Sep 2011 11:48:33 +0000 (13:48 +0200)]
Fixed XComposite hardware integration.

The root window needs to actually be mapped in order for
XCompositeNameWindowPixmap to work.

Also make sure to set both the window and pixmap bits in case we're on a
stricter EGL / GLX implementation.

12 years agoDisabled DESTDIR for the wayland platform
Andy Nichols [Tue, 13 Sep 2011 14:45:49 +0000 (16:45 +0200)]
Disabled DESTDIR for the wayland platform

This enables make install to work correctly.  This should be fixed when
this is moved into the QtWayland module.

12 years agoBuild fix
Lasse Holmstedt [Tue, 13 Sep 2011 11:59:59 +0000 (13:59 +0200)]
Build fix

12 years agoCleaned up project files
Andy Nichols [Tue, 13 Sep 2011 11:37:18 +0000 (13:37 +0200)]
Cleaned up project files

Removed references to Widgets module that is not needed anymore.  Also
make qml-compositor deployable with make install.

12 years agoMerge branch 'refactor'
Paul Olav Tvete [Tue, 13 Sep 2011 11:03:01 +0000 (13:03 +0200)]
Merge branch 'refactor'

12 years agoMerge branch 'refactor'
Gunnar Sletta [Tue, 13 Sep 2011 08:46:23 +0000 (10:46 +0200)]
Merge branch 'refactor'

Conflicts:
src/qt-compositor/compositor_api/waylandcompositor.cpp
src/qt-compositor/wayland_wrapper/wloutput.cpp

12 years agoImport the wayland platform plugin from qtbase, including the qt/4.8 history
Paul Olav Tvete [Mon, 12 Sep 2011 15:30:24 +0000 (17:30 +0200)]
Import the wayland platform plugin from qtbase, including the qt/4.8 history

12 years agoMerge remote branch 'gerrit/master' into HEAD
Samuel Rødal [Tue, 6 Sep 2011 08:49:40 +0000 (10:49 +0200)]
Merge remote branch 'gerrit/master' into HEAD

Conflicts:
src/plugins/platforms/wayland/qwaylandnativeinterface.cpp
src/plugins/platforms/wayland/qwaylandnativeinterface.h

Change-Id: I64cf2cefa532ba87a92f632e3595ce6914183e9b

12 years agoGet rid of the textureChanged signal.
Paul Olav Tvete [Fri, 9 Sep 2011 12:01:39 +0000 (14:01 +0200)]
Get rid of the textureChanged signal.

We trigger update directly from damage now, so we don't need this signal anymore.

12 years agoMake sure we always release buffers
Paul Olav Tvete [Fri, 9 Sep 2011 07:46:28 +0000 (09:46 +0200)]
Make sure we always release buffers

If for some reason the compositor is not able to handle a buffer
before the next one arrives, the buffer would be locked forever.
This change detects that case, and adds an "emergency release", and
displays a warning.

12 years agoMake sure we update the item when the buffer is damaged.
Paul Olav Tvete [Thu, 8 Sep 2011 15:57:59 +0000 (17:57 +0200)]
Make sure we update the item when the buffer is damaged.

Done with Samuel.

12 years agoCompile fixes
Paul Olav Tvete [Thu, 8 Sep 2011 15:56:32 +0000 (17:56 +0200)]
Compile fixes

12 years agoChange the install path for qwindow-compositor example
Andy Nichols [Wed, 7 Sep 2011 14:09:08 +0000 (16:09 +0200)]
Change the install path for qwindow-compositor example

12 years agoAllow changing of the output geometry
Lasse Holmstedt [Tue, 6 Sep 2011 14:49:03 +0000 (16:49 +0200)]
Allow changing of the output geometry

If you are building a compositor that does not provide the same
composition area as the desktop resolution, you can now change the
geometry to match the area that your compositor is going to render.

You must set the geometry to desired value before clients connect.

Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoRemove isVisibleOnScreen from ManagedWaylandClient
Lasse Holmstedt [Wed, 31 Aug 2011 14:08:05 +0000 (16:08 +0200)]
Remove isVisibleOnScreen from ManagedWaylandClient

the values are already stored in WaylandSurfaceItem.

12 years agoSupport for generic window properties
Lasse Holmstedt [Wed, 31 Aug 2011 08:00:10 +0000 (10:00 +0200)]
Support for generic window properties

Wayland surfaces can now contain window-specific properties,
which are read/writable from both server and client side.

Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoGeneric property support for platform windows
Lasse Holmstedt [Wed, 31 Aug 2011 07:55:11 +0000 (09:55 +0200)]
Generic property support for platform windows

QPlatformNativeInterface can now contain generic window
properties in a QVariantMap, to facilitate communication
with the compositor and clients for certain platforms.
When window properties change, a signal is emitted from the
respective QPlatformNativeInterface instance. The properties
are intended to be read/writable from both client and server.

Change-Id: I7b42f7910d03c0d309add6c7dbb1c9b66ad22a3f
Reviewed-on: http://codereview.qt.nokia.com/3956
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoPropogate that the size has changed
Jørgen Lind [Fri, 2 Sep 2011 14:39:06 +0000 (16:39 +0200)]
Propogate that the size has changed

Change-Id: I73dde157e38933d39992cb4393297c0849ee1ae2
Reviewed-on: http://codereview.qt.nokia.com/4149
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
12 years agomissing include
Gunnar Sletta [Fri, 2 Sep 2011 07:08:18 +0000 (09:08 +0200)]
missing include

12 years agoAdapt to new API
Gunnar Sletta [Fri, 2 Sep 2011 06:57:40 +0000 (08:57 +0200)]
Adapt to new API

12 years agoMerge branch 'refactor' of scm.dev.nokia.troll.no:qt-compositor/mainline into refactor
Andy Nichols [Wed, 31 Aug 2011 14:25:36 +0000 (16:25 +0200)]
Merge branch 'refactor' of scm.dev.nokia.troll.no:qt-compositor/mainline into refactor

12 years agoEnables semi-transparent clients in QWindow Compositor
Andy Nichols [Wed, 31 Aug 2011 14:23:10 +0000 (16:23 +0200)]
Enables semi-transparent clients in QWindow Compositor

12 years agoCocoa: Fix qmlscene flicker on startup.
Morten Sorvig [Tue, 23 Aug 2011 10:51:11 +0000 (12:51 +0200)]
Cocoa: Fix qmlscene flicker on startup.

The SG render thread was racing window creation in
the GUI thread, which would cause flicker if the
window won the race and was shown before the SG
thread had a frame ready.

Send a synchronous expose event before showing the
window - this will wait for the SG render thread.

In addition, don't defer NSwindow creation. The GL
context setup is done before the window is shown
and needs a fully created window.

New API: QWindowSystemInterface::handleSynchronousExposeEvent
Retire: QWindowSystemInterface::handleExposeEvent

Change-Id: I0bb46089d16ec4882aaac8db67b57d15e0f51531
Reviewed-on: http://codereview.qt.nokia.com/3399
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
12 years agoActually rename the cleasses and remove the don't recreate eglimage
Jørgen Lind [Wed, 31 Aug 2011 13:51:35 +0000 (15:51 +0200)]
Actually rename the cleasses and remove the don't recreate eglimage

hack that the last commit contained

12 years agoRenaming mesa_egl to wayland_egl
Jørgen Lind [Wed, 31 Aug 2011 13:47:20 +0000 (15:47 +0200)]
Renaming mesa_egl to wayland_egl

and a compile fix for qwidget compositor

12 years agoMerge branch 'refactor' of scm.dev.nokia.troll.no:qt-compositor/mainline into refactor
Andy Nichols [Wed, 31 Aug 2011 11:35:03 +0000 (13:35 +0200)]
Merge branch 'refactor' of scm.dev.nokia.troll.no:qt-compositor/mainline into refactor

12 years agoInitial commit of QWindow based compositor
Andy Nichols [Wed, 31 Aug 2011 11:34:46 +0000 (13:34 +0200)]
Initial commit of QWindow based compositor

12 years agoUpdate to compile with changes to Refactor branch.
Andy Nichols [Wed, 31 Aug 2011 11:33:45 +0000 (13:33 +0200)]
Update to compile with changes to Refactor branch.

12 years agoAdded buffer release
Jørgen Lind [Fri, 19 Aug 2011 15:08:27 +0000 (17:08 +0200)]
Added buffer release

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

12 years agoFixed build and crash issues.
Samuel Rødal [Mon, 29 Aug 2011 12:18:03 +0000 (14:18 +0200)]
Fixed build and crash issues.

12 years agoCopy core GL functionality to QtGui with QGL -> QOpenGL naming.
Samuel Rødal [Mon, 22 Aug 2011 08:49:28 +0000 (10:49 +0200)]
Copy core GL functionality to QtGui with QGL -> QOpenGL naming.

Change-Id: Ibc989afa4a30dd184d41d1a1cd89f97196e48855
Reviewed-on: http://codereview.qt.nokia.com/3710
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
12 years agoIntroduce new platform capability ThreadedOpenGL.
Samuel Rødal [Thu, 25 Aug 2011 18:19:44 +0000 (20:19 +0200)]
Introduce new platform capability ThreadedOpenGL.

Lets the platform plugin advertise whether it's safe to use OpenGL from
a different thread. With XCB we only advertise this if we have a
reasonably new XCB libary, as older versions suffer from the
xcb_wait_for_reply() blocking bug, which cause GL rendering in a
separate to stall when using Mesa drivers.

Change-Id: I4829df7e583a1c8aed218ae13a159d21266cc594
Reviewed-on: http://codereview.qt.nokia.com/3613
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
12 years agoMerge branch 'master' into refactor
Gunnar Sletta [Thu, 25 Aug 2011 08:11:49 +0000 (10:11 +0200)]
Merge branch 'master' into refactor

Conflicts:
src/gui/kernel/qapplication_qpa.cpp
src/gui/kernel/qcursor_qpa.cpp
src/gui/kernel/qwindowsysteminterface_qpa.cpp
src/gui/kernel/qwindowsysteminterface_qpa.h
src/gui/kernel/qwindowsysteminterface_qpa_p.h
src/gui/text/qtextcontrol.cpp
src/plugins/platforms/wayland/wayland.pro
src/widgets/accessible/qaccessible2.h
src/widgets/widgets/qwidgetlinecontrol_p.h

Change-Id: I5e6f4eb184159dccc67e8f13673edb884d179c74

12 years agoIf the EGL_PLATFORM is not set, then set it
Jørgen Lind [Wed, 24 Aug 2011 08:38:31 +0000 (10:38 +0200)]
If the EGL_PLATFORM is not set, then set it

Change-Id: I6c1b0ba757c64fc42faacd69d4e5d1df28faf7d1
Reviewed-on: http://codereview.qt.nokia.com/3472
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
12 years agoAvoid crash in texture provider.
Laszlo Agocs [Tue, 23 Aug 2011 13:14:19 +0000 (16:14 +0300)]
Avoid crash in texture provider.

12 years agoupdated to latest API
Gunnar Sletta [Mon, 22 Aug 2011 14:07:56 +0000 (16:07 +0200)]
updated to latest API

12 years agomake compositor build with refactor - frameSwapped slot added
Matthew Cattell [Thu, 18 Aug 2011 12:49:01 +0000 (14:49 +0200)]
make compositor build with refactor - frameSwapped slot added

12 years agoadded widgets-private
Matthew Cattell [Thu, 18 Aug 2011 12:43:59 +0000 (14:43 +0200)]
added widgets-private

12 years agoget window handle direct from compositor
Matthew Cattell [Thu, 18 Aug 2011 12:42:52 +0000 (14:42 +0200)]
get window handle direct from compositor

12 years agoWork with refactor
Gunnar Sletta [Mon, 15 Aug 2011 06:37:30 +0000 (08:37 +0200)]
Work with refactor

12 years agoprepare to support refactor based on QWindow
Gunnar Sletta [Fri, 12 Aug 2011 14:01:44 +0000 (16:01 +0200)]
prepare to support refactor based on QWindow

12 years agorefactor fixes
Gunnar Sletta [Fri, 12 Aug 2011 13:11:33 +0000 (15:11 +0200)]
refactor fixes

12 years agoCompile with recent refacto
Gunnar Sletta [Fri, 12 Aug 2011 10:18:01 +0000 (12:18 +0200)]
Compile with recent refacto

12 years agoHandle EINTR gracefully in Wayland clipboard.
Laszlo Agocs [Wed, 10 Aug 2011 07:05:03 +0000 (10:05 +0300)]
Handle EINTR gracefully in Wayland clipboard.

Change-Id: Idd5082f02eb6708685421492afb8ad5b8546a5d6
Reviewed-on: http://codereview.qt.nokia.com/2810
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agoGet wayland plugin working after latest QPA API changes.
Samuel Rødal [Fri, 5 Aug 2011 10:11:40 +0000 (12:11 +0200)]
Get wayland plugin working after latest QPA API changes.

Change-Id: If54e7068aaed84fe765b887250bca79c787bd8a3
Reviewed-on: http://codereview.qt.nokia.com/2684
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agoGet rid of missing qmake warning.
Samuel Rødal [Fri, 5 Aug 2011 07:21:34 +0000 (09:21 +0200)]
Get rid of missing qmake warning.

Change-Id: I470e89cb5b2042cda1811ef327e0703c7510fd08
Reviewed-on: http://codereview.qt.nokia.com/2683
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agoMerge remote branch 'origin/master' into refactor
Samuel Rødal [Fri, 5 Aug 2011 10:16:54 +0000 (12:16 +0200)]
Merge remote branch 'origin/master' into refactor

12 years agoUpdated according to ShaderEffectItem -> ShaderEffect API changes.
Samuel Rødal [Fri, 5 Aug 2011 10:12:29 +0000 (12:12 +0200)]
Updated according to ShaderEffectItem -> ShaderEffect API changes.

12 years agoAvoid killing clients with sigpipe when transfering clipboard data.
Laszlo Agocs [Thu, 4 Aug 2011 12:01:37 +0000 (15:01 +0300)]
Avoid killing clients with sigpipe when transfering clipboard data.

When transfering selection data from sender to receiver, normally they
both block on the write and read. However blocking on the read when
retaining the data is sub-optimal for the compositor. Therefore it
uses non-blocking I/O (*) but this seems to introduce a chance of
having the clients terminating with SIGPIPE signal due to trying to
write when the compositor has already closed the handle and started to
retain another selection from another client. (all this caused by a
rapid succession of QClipboard::setMimeData calls)

The patch ensures that the read end of the pipe is not closed until
all data has been read, even if a newer selection gets activated
meanwhile, in which case the data (that became obsolete) is simply
ignored.

(*) The patch also enables real non-blocking I/O which was missing
for some reason, until now the compositor blocked when the first
reaady to read signal came.

12 years agoSupport QImage and others in Wayland clipboard.
Laszlo Agocs [Thu, 4 Aug 2011 10:01:04 +0000 (13:01 +0300)]
Support QImage and others in Wayland clipboard.

The wayland plugin's clipboard implementation lacked support for data
set via QMimeData::setImageData, QClipboard::setPixmap, etc. because
everything was treated as a QByteArray. A variant having an image
cannot however be converted to a byte array. Therefore, to make these
convenience functions to work, the image is now encoded via
QImageWriter before sending it. On the receiving side QMimeData is
capable of decoding images from byte arrays, so no problem there.
The patch also renames an internal QWaylandMimeData class to a more
suitable clipboard-specific name as the functionality is clipboard
specific.

Change-Id: I77e7df903b8dbe9731613fdbb9693b2a37b05d18
Reviewed-on: http://codereview.qt.nokia.com/2616
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agoAdd root-level .pro files
Lasse Holmstedt [Fri, 29 Jul 2011 21:12:28 +0000 (23:12 +0200)]
Add root-level .pro files

So that you can build from the root. By default, examples are not
built.

12 years agoMake QPlatformIntegration not have a factory for eventdispatcher
Jørgen Lind [Wed, 27 Jul 2011 14:54:53 +0000 (16:54 +0200)]
Make QPlatformIntegration not have a factory for eventdispatcher

but rather an accessor for the guiThreadEventDispatcher

Change-Id: I1b9ba14efc9f338c5a67e3e24ddb0caf76c07413
Reviewed-on: http://codereview.qt.nokia.com/2321
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoMerge branch 'master' into refactor
Laszlo Agocs [Wed, 27 Jul 2011 09:34:09 +0000 (12:34 +0300)]
Merge branch 'master' into refactor

Conflicts:
examples/qml-compositor/qml-compositor.pro

12 years agoFix qwidget example build with regular Qt5.
Laszlo Agocs [Tue, 26 Jul 2011 08:55:50 +0000 (11:55 +0300)]
Fix qwidget example build with regular Qt5.

12 years agoGet rid of unnecessary focus checks for touch event sending.
Laszlo Agocs [Tue, 26 Jul 2011 08:55:02 +0000 (11:55 +0300)]
Get rid of unnecessary focus checks for touch event sending.

12 years agoDrag and drop support in Wayland plug-in.
Laszlo Agocs [Mon, 25 Jul 2011 10:01:04 +0000 (13:01 +0300)]
Drag and drop support in Wayland plug-in.

Change-Id: I5e4448a9b3d3df9e3a12733386079031be340a42
Reviewed-on: http://codereview.qt.nokia.com/2101
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoPixmap cursor support in QWaylandCursor.
Laszlo Agocs [Mon, 25 Jul 2011 09:57:57 +0000 (12:57 +0300)]
Pixmap cursor support in QWaylandCursor.

Change-Id: I7075229584e9705fae63679b5512c11fd8535797
Reviewed-on: http://codereview.qt.nokia.com/2100
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
12 years agoAdded workable QScreen API on top of QPlatformScreen.
Samuel Rødal [Thu, 21 Jul 2011 11:50:28 +0000 (13:50 +0200)]
Added workable QScreen API on top of QPlatformScreen.

QPlatformIntegration::screens() no longer has to be implemented,
implementations should call QPlatformIntegration::screenAdded() for each
screen instead. This is for being able to support adding screens at
run-time later on, by connecting it to a signal in QGuiApplication.

The QGuiGLContext API has changed a bit, by not sending in all the
parameters in the constructor but instead having a create() function.
The createPlatformGLContext() factory in QPlatformIntegration takes a
QGuiGLContext * instead of a QSurfaceFormat and a share context, similar
to how the window and backing store factory functions work.

The XCB plugin has experimental support for connecting to multiple X
displays simultaneously, creating one or more QScreen for each.

Change-Id: I248a22a4fd3481280710110272c04a30a8021e8f
Reviewed-on: http://codereview.qt.nokia.com/2103
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
12 years agoAdd drag'n'drop and basic cursor support.
Laszlo Agocs [Fri, 22 Jul 2011 12:11:44 +0000 (15:11 +0300)]
Add drag'n'drop and basic cursor support.

13 years agoand now: the (hopefully) correct fix
Oswald Buddenhagen [Thu, 21 Jul 2011 09:27:33 +0000 (11:27 +0200)]
and now: the (hopefully) correct fix

in fact, that private header comes from qtdeclarative

13 years agofix build
Oswald Buddenhagen [Thu, 21 Jul 2011 09:08:32 +0000 (11:08 +0200)]
fix build

the usage of declarative makes our code use opengl-private even without
opengl itself being used.

13 years agorecognize QT_WAYLAND_GL_CONFIG also as a qmake variable
Oswald Buddenhagen [Wed, 20 Jul 2011 09:07:55 +0000 (11:07 +0200)]
recognize QT_WAYLAND_GL_CONFIG also as a qmake variable

unlike an environment variable set only for the time being, this
actually survives automated rebuilds of makefiles

13 years agoclean up the QT+= stuff in the project files
Oswald Buddenhagen [Tue, 19 Jul 2011 12:39:19 +0000 (14:39 +0200)]
clean up the QT+= stuff in the project files

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.

13 years agoMerge branch 'master' into refactor
Laszlo Agocs [Tue, 19 Jul 2011 12:34:21 +0000 (15:34 +0300)]
Merge branch 'master' into refactor

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

13 years agoMake it compile with xcomposite_glx.
Laszlo Agocs [Tue, 19 Jul 2011 11:56:22 +0000 (14:56 +0300)]
Make it compile with xcomposite_glx.

13 years agoAdd missing touchEventsEnabled property to WaylandSurfaceItem.
Laszlo Agocs [Tue, 19 Jul 2011 09:19:25 +0000 (12:19 +0300)]
Add missing touchEventsEnabled property to WaylandSurfaceItem.

13 years agoFix compilation of qml example and enable touch handling.
Laszlo Agocs [Tue, 19 Jul 2011 09:06:21 +0000 (12:06 +0300)]
Fix compilation of qml example and enable touch handling.

13 years agoAdd touch event support to WaylandSurfaceItem.
Laszlo Agocs [Tue, 19 Jul 2011 08:45:07 +0000 (11:45 +0300)]
Add touch event support to WaylandSurfaceItem.

13 years agoRename QPixmapData to QPlatformPixmap.
Samuel Rødal [Fri, 15 Jul 2011 12:07:12 +0000 (14:07 +0200)]
Rename QPixmapData to QPlatformPixmap.

Makes the API symmetric with the other Lighthouse APIs.

Change-Id: I8a399f3c968ea35d4624711b31f2ac5bb94b7893
Reviewed-on: http://codereview.qt.nokia.com/1735
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
13 years agoMerge remote branch 'gerrit/master' into refactor
Samuel Rødal [Tue, 12 Jul 2011 10:52:22 +0000 (12:52 +0200)]
Merge remote branch 'gerrit/master' into refactor

Conflicts:
src/gui/image/qicon.cpp
src/gui/image/qicon.h
src/gui/image/qicon_p.h
src/gui/text/qfontdatabase.cpp
src/plugins/platforms/wayland/gl_integration/qwaylandglwindowsurface.cpp
src/plugins/platforms/wayland/gl_integration/wayland_egl/qwaylandglcontext.cpp
src/plugins/platforms/wayland/gl_integration/xcomposite_egl/qwaylandxcompositeeglwindow.cpp
sync.profile

Change-Id: Ie0a23a12177ff51bf562e15b2dd41f071afb19b4

13 years agoReduced usage of private headers
Martin Zielinski [Mon, 11 Jul 2011 08:05:21 +0000 (10:05 +0200)]
Reduced usage of private headers

Integration of v8 lead to a lot of v8 headers being included from
private QtDeclarative headers. As v8 headers are not installed, this
broke the compositor build. This change reduces the usage of private
headers to the minimum.

13 years agoFixed wayland windowmanager-protocol authorization
Martin Zielinski [Mon, 4 Jul 2011 07:41:26 +0000 (09:41 +0200)]
Fixed wayland windowmanager-protocol authorization

The authorization is now handled more robust. The client tries to authenticate
as soon as a surface is created, but does so only if the authentication
token is valid. A re-authorization than happens when requestActivateWindow()
is called.
This is needed to get the auth-process properly working even with
pre-started clients, that do not have a valid token on surface-creation
time.

Change-Id: I4371b424686b9d5a6a163a802ec66a33c0aeeea7
Reviewed-on: http://codereview.qt.nokia.com/1207
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lasse Holmstedt
13 years agoMerge branch 'refactor' of scm.dev.nokia.troll.no:qt/qtbase-staging into refactor
Lars Knoll [Wed, 6 Jul 2011 12:08:13 +0000 (14:08 +0200)]
Merge branch 'refactor' of scm.dev.nokia.troll.no:qt/qtbase-staging into refactor

13 years agoMerge remote branch 'gerrit/master' into refactor
Lars Knoll [Wed, 6 Jul 2011 11:55:40 +0000 (13:55 +0200)]
Merge remote branch 'gerrit/master' into refactor

Conflicts:
config.tests/unix/opengldesktop/opengldesktop.cpp
examples/itemviews/interview/interview.pro
examples/mainwindows/mainwindow/mainwindow.pro
examples/openvg/README
examples/richtext/textedit/textedit.pro
examples/tools/undo/undo.pro
src/corelib/global/qglobal.h
src/corelib/kernel/qcoreapplication.h
src/corelib/kernel/qcoreevent.h
src/corelib/kernel/qmetatype.h
src/gui/kernel/qevent.cpp
src/gui/kernel/qevent.h
src/gui/painting/qpaintengine_raster.cpp
src/gui/painting/qpaintengine_raster_p.h
src/gui/text/qfontdatabase.cpp
src/opengl/qgl.h
src/openvg/qpaintengine_vg.cpp
src/plugins/platforms/wayland/qwaylandwindow.cpp
tests/auto/qmainwindow/qmainwindow.pro

Change-Id: I6bfb586740a68379bb99f4612ec993393a5f3234

13 years agoFixed gl_integration.pri on non-mac platforms.
Samuel Rødal [Wed, 6 Jul 2011 10:51:50 +0000 (12:51 +0200)]
Fixed gl_integration.pri on non-mac platforms.

13 years agoWe need to let the currentContext be in the same state after
Jørgen Lind [Fri, 27 May 2011 09:12:02 +0000 (02:12 -0700)]
We need to let the currentContext be in the same state after

setting the new eglsurface
(cherry picked from commit af3efefeefe686e5c35ed502de077c0bcb6f6fc0)

Change-Id: Ic1d62b21a1482d1bc7f1d99478e175e4b767e157
Reviewed-on: http://codereview.qt.nokia.com/1209
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
13 years agoCorrect authentication behavior
Martin Zielinski [Mon, 4 Jul 2011 07:54:42 +0000 (09:54 +0200)]
Correct authentication behavior

The authentication of clients via windowmanager-token is now
more robust. This is needed to get the app-booster usecase working
correctly.

13 years agoFix the wayland windowsurface so that we have stencil and depth buffer
Jørgen Lind [Sun, 8 May 2011 08:53:56 +0000 (10:53 +0200)]
Fix the wayland windowsurface so that we have stencil and depth buffer

(cherry picked from commit 322c96eb9564f930a63be820c22b053630663880)

Change-Id: I89c10cea1a302d9549024940e49c7d5960abb953
Reviewed-on: http://codereview.qt.nokia.com/1210
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
13 years agoRemove debug output
Lasse Holmstedt [Tue, 5 Jul 2011 09:35:43 +0000 (11:35 +0200)]
Remove debug output

13 years agoAdd QScreenOrientationChangeEvent and rotation support to wayland client
Lasse Holmstedt [Mon, 4 Jul 2011 10:08:38 +0000 (12:08 +0200)]
Add QScreenOrientationChangeEvent and rotation support to wayland client

Qt Compositor propagates screen orientation changes to wayland, which
are then picked up by the wayland client. The wayland client then sends
a QScreenOrientationChangeEvent to QApplication, which can handle the
orientation change.

Change-Id: Ieb2225e52b7e3c318648f2cb21dab7937f301505
Reviewed-on: http://codereview.qt.nokia.com/1063
Reviewed-by: mae
13 years agoPropagate screen orientation changes through wayland
Lasse Holmstedt [Wed, 29 Jun 2011 09:50:38 +0000 (11:50 +0200)]
Propagate screen orientation changes through wayland

Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
13 years agoImplemented on-screen visibility handling via wayland
Martin Zielinski [Mon, 27 Jun 2011 07:23:13 +0000 (09:23 +0200)]
Implemented on-screen visibility handling via wayland

The compositor informs the client about it's window not being visible at all.
This is handled here by dispatching a ApplicationActivated/ApplicationDeactivated event.
The application than is free to handle this event and stop rendering and other not
needed processing.

Change-Id: I1dcc3f2a4a8e63ad5cc4f89cbf82cc63f779edbf
Reviewed-on: http://codereview.qt.nokia.com/763
Reviewed-by: Lasse Holmstedt
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
13 years agoClean up wayland-cgl-readback.
Morten Sorvig [Wed, 29 Jun 2011 10:33:05 +0000 (12:33 +0200)]
Clean up wayland-cgl-readback.

Read directly into the window buffer - looks like we
don't need to do any byte swapping. Disable the frame
sync, since this causes a deadlock with the compositor.

13 years agoAdd touch support to qwidget example compositor.
Laszlo Agocs [Thu, 30 Jun 2011 11:48:48 +0000 (14:48 +0300)]
Add touch support to qwidget example compositor.

13 years agoUpdate wayland sha.
Laszlo Agocs [Thu, 30 Jun 2011 10:40:41 +0000 (13:40 +0300)]
Update wayland sha.

13 years agoAdd touch event support to wayland plugin.
Laszlo Agocs [Wed, 29 Jun 2011 14:03:19 +0000 (17:03 +0300)]
Add touch event support to wayland plugin.

Change-Id: If4be4965ae4e9898f5afb756632aa0349bd9b149
Reviewed-on: http://codereview.qt.nokia.com/935
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
13 years agoAdd touch event support.
Laszlo Agocs [Thu, 30 Jun 2011 08:08:32 +0000 (11:08 +0300)]
Add touch event support.

13 years agoConfigure for mac.
Morten Sorvig [Wed, 29 Jun 2011 11:28:28 +0000 (13:28 +0200)]
Configure for mac.

Don't use pkgconfig. Use the raster compositor.

13 years agoFix signal-slot connection.
Morten Sorvig [Wed, 29 Jun 2011 10:51:01 +0000 (12:51 +0200)]
Fix signal-slot connection.

surfaceMapped(QRect) -> surfaceMapped(QSize)