summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
Commit message (Collapse)AuthorAgeFilesLines
* Update dependency list in xcb READMEJørgen Lind2011-06-101-1/+1
|
* QtPlatformSupport: A helper library for platform pluginsJørgen Lind2011-06-1032-3606/+20
| | | | | | | | QtPlatformSupport is a static library. Platform plugins are meant to link against this library to pull in dependencies such as fontengines and convenience functions for finding the right GL configs. The linker will only pull in the symbols used, so the size of the library doesn't really matter
* QWindowContext / QWindowFormat refactor.Samuel Rødal2011-06-1050-554/+815
| | | | | | | | | | | | | To enable having a single GL context used for multiple drawables we need to de-couple the context class a bit more from the window class in the plugin API. Now contexts are created stand-alone based on a GL format and a share context, and when calling makeCurrent() a desired surface is specified. This maps well to GLX, EGL, Cocoa, AGL, and WGL, which all support this use case. QWindowContext is renamed to QGuiGLContext, and QWindowFormat is renamed to QGuiGLFormat. We have the ability to introduce a pbuffer or similar other offscreen GL drawable abstraction in the future.
* Use XLookupString for translating key events.Laszlo Agocs2011-06-093-35/+82
| | | | | | | | | There seems to be no easy equivalent in the XCB world and the fallback we currently have is really incomplete. Hence we will call XLookupString with a fake XKeyEvent if XCB_USE_XLIB is enabled. Reviewed-by: Samuel Rødal
* Add QEventDispatcherMac.Morten Sorvig2011-06-095-183/+0
| | | | | Create it directly in QGuiApplication for now, later on we'll move it to the cocoa plugin.
* Bail out from cursor creation when malloc fails.Laszlo Agocs2011-06-091-0/+6
|
* Get modifier mapping using standard X, no need for libxkbcommon here.Laszlo Agocs2011-06-092-33/+52
| | | | Reviewed-by: Samuel Rødal
* Create custom cursors via XRender.Laszlo Agocs2011-06-096-15/+120
| | | | Reviewed-by: Samuel Rødal
* Cursor support in xcb plug-in.Laszlo Agocs2011-06-0812-119/+912
| | | | | | | Custom cursor pixmaps with depth greater than 1 are not yet supported and will be converted to monochrome always. Reviewed-by: Samuel Rødal
* cosmetic changesLars Knoll2011-06-082-5/+5
|
* Fix behaviour after WM_TAKE_FOCUSLars Knoll2011-06-081-1/+0
| | | | | | | We should not call requestActivateWindow() in reaction to WM_TAKE_FOCUS. Looks like it should only be done if the focus should in fact go to a modal child of the widget.
* revert accidental commitLars Knoll2011-06-071-1/+1
|
* remove unused codeLars Knoll2011-06-071-118/+0
|
* cleanups codeLars Knoll2011-06-079-166/+147
| | | | | | | Make QXcbClipboard and QXcbDrag a QXcbObject to simplify the code. Use the predefined atoms in xproto.h instead of our own defines.
* Fix some remaining issues with DnDLars Knoll2011-06-074-93/+10
| | | | | | | | | Do not set the event mask of the window we drop onto to NO_EVENT. Always use the clipboards requestor window to convert selections. Reviewed-by: Samuel
* add WM support classLars Knoll2011-06-079-15/+285
| | | | | | | | | Add a QXcbWMSupport class to better integrate with NET_WM compliant window managers. Suppport NET_WM_USER_TIME on windows. Reviewed-by: Samuel
* Implement XDnD in the xcb pluginLars Knoll2011-06-076-698/+601
| | | | | | | | | Ported most of the code to support dragging from qdnd_x11.cpp to xcb. Some features are still not working 100% correct, but it's becoming usable. Reviewed-by: Samuel
* X11 DnD implementationLars Knoll2011-06-0710-26/+1883
| | | | | | | | | | | Initial code for DnD on X11. Only Xdnd based, Motif DnD is being ignored. The code is currently limited to dropping stuff onto the application. Starting drags is not yet implemented. Reviewed-by: Samuel
* Cocoa: Implement raise() and lower().Morten Sorvig2011-06-072-0/+14
|
* Cocoa: Implement setWindowTitle.Morten Sorvig2011-06-072-0/+9
|
* Fix Cocoa mouse position handling.Morten Sorvig2011-06-071-4/+4
| | | | | | | I'm not sure what "local" and "global" means for QWindowSystemInterface::handleMouseEvent. Sending the mouse position in window coordinates for both works.
* Made tst_QWidget::updateWhileMinimized() pass.Samuel Rødal2011-06-063-2/+15
| | | | | | | | | | This requires adding a couple of window system interface events, namely Map, Unmap, and Expose. When a widget is minimized on X11 it is unmapped, and thus update requests should not be delivered. Instead the event will delivered when the widget is mapped, which causes an Expose event to be sent. The Unmap and Expose event thus need to be handled in QWidgetWindow, and Map is also added for the purpose of API symmetry (and for future needs).
* Set visibility state.Morten Sorvig2011-06-061-2/+5
|
* Make building of platform plugins indifferent if its out of sourceJørgen Lind2011-06-0627-222/+84
| | | | | This requires some source files to be shipped with the Qt install They are now copied into QT_INSTALL_DATA/platform
* Avoid setting the active window to null when there is a FocusIn queued.Laszlo Agocs2011-06-063-1/+40
|
* Implemented QXcbScreen::topLevelAt(const QPoint &p).Samuel Rødal2011-06-064-3/+52
| | | | This makes the tst_QWidget::widgetAt() auto-test pass.
* Make XCB plugin work better in combination with auto-tests.Samuel Rødal2011-06-061-0/+1
| | | | | | | | | When an auto-test calls processEvents() indirectly via QTest::qWait(), QAbstractEventDispatcher::aboutToBlock() doesn't get emitted since the processEvents() implementation gets called without the QEventLoop::WaitForMoreEvents flag set. Since the auto-tests depend on all events getting delivered, we need to process the XCB events on awake() as well.
* Basic QDesktopWidget support.Samuel Rødal2011-06-031-0/+9
| | | | | Makes it possible to use grabWindow on the desktop widget with the xcb plugin, which gives us a few more passing tests in tst_QWidget.
* Prevent crash in QXcbIntegration::grabWindow().Samuel Rødal2011-06-031-2/+1
| | | | Copy the image explicitly before calling QPixmap::fromImage().
* Implemented QXcbIntegration::grabWindow().Samuel Rødal2011-06-035-6/+255
|
* Add support for mouse and keyboard grab.Laszlo Agocs2011-06-032-0/+40
| | | | Reviewed-by: Samuel Rødal
* Get rid of superfluous debug output in the xcb plugin.Samuel Rødal2011-06-031-4/+0
|
* Merge branch 'refactor' of scm.dev.nokia.troll.no:qt/qtbase-staging into ↵Jørgen Lind2011-06-011-1/+1
|\ | | | | | | refactor
| * Have tooltips shown properly with xcb.Laszlo Agocs2011-06-011-1/+1
| |
* | Merge remote-tracking branch 'base/master' into refactorJørgen Lind2011-06-0121-30/+68
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gui/embedded/qmousepc_qws.cpp src/gui/embedded/qwslock.cpp src/plugins/decorations/default/default.pro src/plugins/decorations/styled/styled.pro src/plugins/decorations/windows/windows.pro src/plugins/gfxdrivers/ahi/ahi.pro src/plugins/gfxdrivers/directfb/directfb.pro src/plugins/gfxdrivers/eglnullws/eglnullws.pro src/plugins/gfxdrivers/linuxfb/linuxfb.pro src/plugins/gfxdrivers/qvfb/qvfb.pro src/plugins/gfxdrivers/transformed/transformed.pro src/plugins/gfxdrivers/vnc/vnc.pro src/plugins/graphicssystems/meego/meego.pro src/plugins/graphicssystems/opengl/opengl.pro src/plugins/graphicssystems/openvg/openvg.pro src/plugins/graphicssystems/shivavg/shivavg.pro src/plugins/graphicssystems/trace/trace.pro src/plugins/kbddrivers/linuxinput/linuxinput.pro src/plugins/mousedrivers/linuxtp/linuxtp.pro src/plugins/mousedrivers/pc/pc.pro src/plugins/mousedrivers/tslib/tslib.pro src/plugins/platforms/minimal/minimal.pro tests/auto/qerrormessage/qerrormessage.pro
| * Made qpluginbase.pri into a feature profile.axis2011-05-3114-14/+14
| | | | | | | | | | | | | | | | | | | | | | This enables other modules to use it without having access to the QtBase sources. Change-Id: I0a588b2e14ca88fa068c7c2bcc69ff669444f6c6 Task: QTBUG-19585 Reviewed-on: http://codereview.qt.nokia.com/237 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
| * Add private header support to the EGLFS platform plugin.Jason Barron2011-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | Several of the QPA headers include private headers in the Core, Gui and OpenGL modules and with the new modularized Qt, we need to opt-in for these. Change-Id: Ib7a81f7843ef89e3c5c5218f790287bb6c00e4cb Reviewed-on: http://codereview.qt.nokia.com/133 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
| * Add authentication token support for wayland windowsLasse Holmstedt2011-05-256-14/+53
| | | | | | | | | | | | | | | | | | | | | | For compositors that support it, the wayland clients can associate themselves with an auth token, specified by WL_AUTHENTICATION_TOKEN env var, or by directly specifying it in the wayland client plugin. Change-Id: I74a50a27c7c61c2b2cf1e09868618f36edc94cb1 Reviewed-by: Samuel Rødal Reviewed-on: http://codereview.qt.nokia.com/116 Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
* | Prevent XSetInputFocus BadMatch errors.Samuel Rødal2011-06-013-2/+19
| | | | | | | | | | | | The BadMatch errors are generated if XSetInputFocus is called before the window has been mapped, so we need to set a flag when we get the map notify event.
* | Start using libxkbcommon in the xcb plug-in.Laszlo Agocs2011-06-013-0/+82
| |
* | Do not choke on zero-sized windows.Laszlo Agocs2011-06-012-5/+18
| | | | | | | | | | | | Configure requests with zero width or height will always fail with BadValue and have to be avoided. Same goes for shm segments of size 0.
* | add a platform interface for DnDLars Knoll2011-06-016-0/+293
| | | | | | | | | | Use the simple in process DnD implementation for xcb.
* | Fix the egl path for xcb and wayland pluginsJørgen Lind2011-05-3112-28/+28
| | | | | | | | Reviewed-by: Samuel Rødal
* | Set xcb size hints properly avoid strange behaviour.Laszlo Agocs2011-05-311-1/+6
| | | | | | | | | | | | | | | | Strange behaviour means incorrect dialog sizes, inability to resize, X crashes, etc. These were caused by not properly filling the size hint structure, leaving possibly random garbage in it. Reviewed-by: Samuel Rødal
* | Made QXcbConnection::atomName() more fail safe.Laszlo Agocs2011-05-301-3/+6
| | | | | | | | Reviewed-by: Samuel Rødal
* | Do not scroll in QXcbWindowSurface when m_image is not yet created.Laszlo Agocs2011-05-301-1/+1
| | | | | | | | Reviewed-by: Samuel Rødal
* | compile with QT_NO_CUPSLars Knoll2011-05-301-0/+6
| |
* | Cleanup code for copy/paste of textLars Knoll2011-05-304-63/+12
| | | | | | | | | | | | | | | | | | | | Remove support for COMPOUND_TEXT. All apps should these days support UTF8_STRING. If not they'll have to live with STRING or TEXT. ICCCM states that TEXT is in the encoding of choice. Make this latin1 instead of local8bit. XA_STRING is defined to be latin1, so don't use local8bit here neither.
* | correctly decode pasted textLars Knoll2011-05-302-9/+15
| |
* | partially working pasteLars Knoll2011-05-302-9/+28
| | | | | | | | | | | | We now paste something from the clipboard, but the format conversion seems to be still off at times.