- 02 Apr, 2015 1 commit
-
-
Martin Flöser authored
Getting the cursor image from the cursor theme is unfortunately not straight forward. We have three different libraries and all have drawbacks: * XCursor - we just kicked it out * xcb-util/cursor - only provides xcb_cursor_t, so a dependency on X * wayland-cursor - only a client side API The picked solution is using wayland-cursor. It provides the cursor in a wl_buffer. Unfortunately the client side API does not easily allow to a) read it back b) init without a wl_shm_pool Thus we need to work this around: * create an internal connection * get a ShmPool on it * init WaylandCursorTheme with this ShmPool * get the cursor wl_buffer from the theme * trigger a roundtrip * get the corresponding BufferInterface for the buffer * set the content as the software cursor
-
- 20 Mar, 2015 1 commit
-
-
Martin Flöser authored
The AbstractBackend registers itself in the WaylandServer allowing external users to easily get to the backend and not needing to test manually which backend is used.
-
- 17 Mar, 2015 6 commits
-
-
Martin Flöser authored
WaylandServer allows to create a ClientConnection which is intended for QtWayland. This allows us to easily identify our "own" surfaces. The created file descriptor is set as env variable WAYLAND_SOCKET prior to creating the Application. Wayland will unset it after connecting, so we don't need to unset it. This removes the hack of setting and resetting the WAYLAND_DISPLAY environment variable.
-
Martin Flöser authored
Creates a socketpair in WaylandServer and creates a ClientConnection for Xwayland. The created file descriptor is passed to Xwayland through the WAYLAND_SOCKET env variable.
-
Martin Flöser authored
If not using libinput we get the seat information from the lower level Wayland server: let's forward the information to our own SeatInterface.
-
Martin Flöser authored
Removes the hack for startup. Still needs proper physical size.
-
Martin Flöser authored
Adds the SurfaceInterface identified by the surface id we get from Xwayland. This allows in an easier way to map a Toplevel to a Wayland surface and will also be useful for Wayland clients.
-
Martin Flöser authored
The WaylandServer is at the moment only used to support starting an Xwayland. It does not support Wayland clients yet, so don't get excited. For Xwayland it's using the trick of creating the Display before the QApplication is created with manual event dispatching.
-