- 15 Jan, 2015 - 1 commit
-
-
Giulio Camuffo authored
When the scenegraph is invalidated we delete the surfaces texture. Set the update flag to true so that when the scene graph is again initialized and starts to draw a frame the textures will be recreated. Change-Id: I2fb171e4bed517e48fa2311c22651150f3e605f7 Reviewed-by:
Jørgen Lind <jorgen.lind@theqtcompany.com>
-
- 13 Jan, 2015 - 2 commits
-
-
Siteshwar Vashisht authored
Change-Id: I9a3285dc5bddd848ec557287c4641d9edce752a9 Reviewed-by:
Jørgen Lind <jorgen.lind@theqtcompany.com>
-
Giulio Camuffo authored
Task-number: QTBUG-43346 Change-Id: I9bc6d804ddca59a7a0173b8f0d3ec2f268fe9a59 Reviewed-by:
Jørgen Lind <jorgen.lind@theqtcompany.com>
-
- 31 Dec, 2014 - 1 commit
-
-
Thiago Macieira authored
Clang found two problems with this from QWaylandDataDeviceManager. First, it's a class, not a struct. Second, nothing is using this private member. qwaylanddatadevicemanager_p.h:66:5: warning: struct 'wl_data_device_manager' was previously declared as a class [-Wmismatched-tags] qwaylanddatadevicemanager_p.h:66:36: warning: private field 'm_data_device_manager' is not used [-Wunused-private-field] And also this one: qwaylandextendedoutput_p.h:61:21: warning: private field 'm_screen' is not used [-Wunused-private-field] Change-Id: Ifc8f28f92190547dcb0a5319aa6fc14277894f15 Reviewed-by:
Giulio Camuffo <giulio.camuffo@jollamobile.com>
-
- 12 Dec, 2014 - 2 commits
-
-
Oswald Buddenhagen authored
Change-Id: If637c41ed60c0191ea118ae4e83c5aa6781b6e2e
-
Giulio Camuffo authored
Change-Id: Iecd5050097abcafa06073d41a31d1ae31fac5b42 Reviewed-by:
Robin Burchell <robin.burchell@viroteck.net>
-
- 11 Dec, 2014 - 1 commit
-
-
Giulio Camuffo authored
Calling wl_data_source.destroy(); wl_data_offer.receive(), where the wl_data_offer is referring to the destroyed wl_data_source, was crashing the compositor. Change-Id: Iab352d63f8a93aebd0bfbcf1dc26c0e8a48a523a Reviewed-by:
Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-
- 06 Dec, 2014 - 1 commit
-
-
Giulio Camuffo authored
There was a race condition between the gui and the wayland event thread which could lead to double freeing the QWaylandShmBackingStore's frame callback. Protect the wl_callback_destroy calls using a mutex. Change-Id: Ia70ebac208a6d4450328ba5254a850be26d84d6d Reviewed-by:
Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-
- 03 Dec, 2014 - 1 commit
-
-
Laszlo Agocs authored
The code is correct but some compilers may still warn about dragData not getting initialized. Silence them. Change-Id: Ib52321667fc5094e22ebbef538b72b5477e6f10b Reviewed-by:
Giulio Camuffo <giulio.camuffo@jollamobile.com>
-
- 20 Nov, 2014 - 1 commit
-
-
Giulio Camuffo authored
The surface's resource may have been destroyed, return a null client in that case. Change-Id: I3d7e0f0e94008e003e43f1987e6560dd73f5c5db Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- 14 Nov, 2014 - 1 commit
-
-
Giulio Camuffo authored
Change-Id: Ic4c998347e14c17693bea461452d6ee8fc41064b Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- 10 Nov, 2014 - 1 commit
-
-
Giulio Camuffo authored
The texture of QWaylandSurfaceItem's texture provider was updated in QWaylandSurfaceItem::updatePaintNode(). That is fine as long as the texture is accessed after the updatePaintNode() call, but if not we would access an invalid texture. That could happen when another QQuickItem subclass was accessing the textire in its updatePaintNode(). We don't have any guarantee on the order of the updatePaintNode() calls, so the other item could be updated before the QWaylandSurfaceItem. Change-Id: I7320d445c72796ce26f8d8483175a35e9c6840e7 Reviewed-by:
Gunnar Sletta <gunnar@sletta.org>
-
- 28 Oct, 2014 - 1 commit
-
-
Giulio Camuffo authored
The compositor must not destroy wl_resources when it wants to, else it breaks the contract with the client. Change-Id: Ic0d298072cdf0954d2504c04bff2bcc99733e621 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- 23 Oct, 2014 - 2 commits
-
-
Olivier Blin authored
Change-Id: I44e0dc6ac4e92a8bdc6a9f8398e60e4d323247f9 Reviewed-by:
Giulio Camuffo <giulio.camuffo@jollamobile.com>
-
Olivier Blin authored
xkb context creation can fail when xkeyboard-config files are not available. This changes qwlkeyboard to gracefully fallback on the QT_NO_WAYLAND_XKB path, as suggested by Giulio Camuffo. Change-Id: Ic57d80b6aa3e9fbd8a393a3ca54dff768a4c3e83 Reviewed-by:
Giulio Camuffo <giulio.camuffo@jollamobile.com>
-
- 21 Oct, 2014 - 2 commits
-
-
Olivier Blin authored
Change-Id: Id7d6582d4e139763634c7022548b558d4a2f8ec2 Reviewed-by:
Giulio Camuffo <giulio.camuffo@jollamobile.com> Reviewed-by:
Robin Burchell <robin.burchell@viroteck.net>
-
Olivier Blin authored
Also add a debug message about theme loading failure. This is not necessarily fatal, some embedded applications could still function properly without a cursor. Change-Id: Ib3e2ee43b00630ee77997c7472a95ac5a22c2cc2 Reviewed-by:
Giulio Camuffo <giulio.camuffo@jollamobile.com> Reviewed-by:
Robin Burchell <robin.burchell@viroteck.net>
-
- 14 Oct, 2014 - 1 commit
-
-
Laszlo Agocs authored
Task-number: QTBUG-41677 Change-Id: I039ec581e960eb70eb04aed6e65add70c563ba77 Reviewed-by:
Robin Burchell <robin.burchell@viroteck.net>
-
- 13 Oct, 2014 - 1 commit
-
-
Giulio Camuffo authored
When binding globals take care of the version the compositor provides and don't call requests that the compositor doesn't implement. Change-Id: Iea0c534fb9e005720857e2778e380b6a9c22a6f3 Reviewed-by:
Jørgen Lind <jorgen.lind@digia.com>
-
- 09 Oct, 2014 - 3 commits
-
-
Friedemann Kleint authored
Conforming to the Qt project directory structure. Change-Id: I452867fabc88e9594fa26f944b5d3e1ca4ffc720 Reviewed-by:
Topi Reiniö <topi.reinio@digia.com>
-
Giulio Camuffo authored
This fixes copying in Weston. Change-Id: Icbdb81078e8df4575bbe440321773131ba27ebbf Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
Giulio Camuffo authored
We cannot just assume all clients implement the same version of the various interfaces as the compositor does. Keep track of them, and react accordingly when creating a resource or sending an event. Change-Id: I9792433a14d49c5c4df0c892fc1349ce0dfb0d43 Reviewed-by:
Jørgen Lind <jorgen.lind@digia.com>
-
- 06 Oct, 2014 - 2 commits
-
-
Mikko Levonmaa authored
Change-Id: I9700c15066c030436dbe2f9a09b0851b7f4350ae Reviewed-by:
Giulio Camuffo <giulio.camuffo@jollamobile.com> Reviewed-by:
Robin Burchell <robin.burchell@viroteck.net>
-
Giulio Camuffo authored
QWaylandShmBackingStore installs a frame callback on flush, and subsequent flushes will not attach a new buffer until the callback is fired. If the window is hidden while we're waiting for the callback, we attach a NULL buffer, so the compositor will not redraw the surface and will not fire the frame callback. When showing the window again the backing store's flush() will wait indefinitely for the frame callback to attach its buffer. To fix it destroy the frame callback when the window is hidden. This was easily noticeable when fast switching between popup menus. Change-Id: Ic0c71ed79e2fab9faf452f63b05bc4576ea9a3ba Reviewed-by:
Jørgen Lind <jorgen.lind@digia.com>
-
- 02 Oct, 2014 - 1 commit
-
-
Giulio Camuffo authored
::exit() is not thread safe, so make sure to not call it more than one time, once from the gui thread and once from the wayland event thread. Change-Id: I80905c6d996cb827a5101ae6d6c9bc12a267ba71 Reviewed-by:
Robin Burchell <robin.burchell@viroteck.net>
-
- 30 Sep, 2014 - 1 commit
-
-
Giulio Camuffo authored
Use the EGL_KHR_create_context extension if available to create modern gl contexts. We disable window decorations on core profiles because that mandates a VAO to be used. Change-Id: Id6044e64f6736244ae9d593af4d68c4000a31de6 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- 28 Sep, 2014 - 1 commit
-
-
Giulio Camuffo authored
We were sending only key press events for the key autorepeat, going out of sync with the release events. Xorg sends both relase and press auto repeat events, do so here too. Change-Id: I41a9bfaff50afea779a7572220f6a01b507e95ac Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- 24 Sep, 2014 - 1 commit
-
-
Giulio Camuffo authored
We were using the screen physical size to determine if a screen is portrait or landscape, but we may not always get a valid size. Instead use the screen resolution. The orientation is then calculated in the wl_output.done handler, since we don't know the resolution yet when receiving the first wl_output.geometry event. Change-Id: I3554f916e54db829f49fa3d1ea24f7ce1ff24e7c Reviewed-by:
Gunnar Sletta <gunnar@sletta.org>
-
- 23 Sep, 2014 - 3 commits
-
-
Robin Burchell authored
This makes absolutely no sense. Just do things inline. Change-Id: Ic6d4e62bc9b3c0a4533f63740f2608a0be201047 Reviewed-by:
Robin Burchell <robin.burchell@viroteck.net>
-
Robin Burchell authored
Convert to a D-pointer, split between abstract base class and an implementation. Also move implementation of the current built-in decoration to the "bradient" plugin, named in glorious memory of the programmer-designed blue gradient that will forever sear our eyeballs. The decoration plugin may be specified using the environment variable QT_WAYLAND_DECORATION. Change-Id: Idc99ab06ae138ad299bad2b62b9595379bd007ab Reviewed-by:
Robin Burchell <robin.burchell@viroteck.net>
-
Robin Burchell authored
This is in preparation for decoration plugins. Change-Id: Idb322a7a5cbc2eb5bf2cce019073f9f4fb46297f Reviewed-by:
Robin Burchell <robin.burchell@viroteck.net>
-
- 18 Sep, 2014 - 2 commits
-
-
Pier Luigi Fiorini authored
When the surface is mapped add or remove the popup grab as expected. Change-Id: I807753393ef2753bc96c698f766523186ee88fd2 Reviewed-by:
Giulio Camuffo <giulio.camuffo@jollamobile.com>
-
Giulio Camuffo authored
A 0x0 size means the compositor doesn't know what the real size is. Change-Id: I79cac0482839399d4a53e9556bb999592af555a5 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- 17 Sep, 2014 - 1 commit
-
-
Giulio Camuffo authored
Weston can send in some cases a negative physical size in the wl_output.geometry event. While it is not clear whether that is legal go the extra mile and catch it. Change-Id: Ie2fbab84e653ad77732a72b6ca61509eb7849895 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
- 15 Sep, 2014 - 3 commits
-
-
Giulio Camuffo authored
Installing a roudtrip on the custom event queue in the wl_data_offer.offer handler is broken because that triggers a wl_data_device.selection event, which emits the QClipboard changed signal, so code listening to it may end up trying to retrieve the clipboard data before the roundtrip ends. Additionally, we're calling wl_data_offer.receive for each mime type, even if then we never read from the fd, making the source client do work for no reason. Instead, call wl_data_offer.receive retrieveData_sys, that is when actually retreiving the data. We don't need to install a roundtrip after that, just flushing out the requests is enough, because we wait up to one second for the source client to write into the fd. Change-Id: I180779e375ebd5a22af7084458505a41107fab19 Reviewed-by:
Robin Burchell <robin.burchell@viroteck.net>
-
Giulio Camuffo authored
If we don't have a valid physical size for a screen, i.e. (0x0), return the default value from the base class. Change-Id: Ia7b6f90ee73e07014ab752ceb165426812c49415 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
Giulio Camuffo authored
Change-Id: Ic00a820ebac7727a8d71d62ce191fe29de52aac0 Reviewed-by:
Robin Burchell <robin.burchell@viroteck.net>
-
- 09 Sep, 2014 - 1 commit
-
-
Olivier Blin authored
This also adds parenthesis for clarity, and uses the qDebug() function instead of the stream, as suggested by Andrew Knight. Change-Id: I1dc3060d516645345c1df5909c377f611502d2fb Reviewed-by:
Robin Burchell <robin.burchell@viroteck.net>
-
- 08 Sep, 2014 - 2 commits
-
-
Giulio Camuffo authored
The wl_output.geometry event carries the physical size of the output, not the logical one. This happened to work only because the geometry event was sent before the mode event, which carries the logical size. Moreover, use the done event to send only one geometry change event instead of one per advertized mode. Change-Id: I5b09d56654aac149d90692bb5a3e050cc0d60cb6 Reviewed-by:
Laszlo Agocs <laszlo.agocs@digia.com>
-
Laszlo Agocs authored
These two unimplemented functions often result in showing warnings from the default implementations. This is not quite ideal since the warning is useless for users and pollutes the standard output (which f.ex. Creator captures as-is) Change-Id: Ic05ff1590ed351738f0390a94ed5203a05664d4a Reviewed-by:
Shawn Rutledge <shawn.rutledge@digia.com>
-