Commit graph

5151 commits

Author SHA1 Message Date
Tony Crisci
aebe5ba48c Use correct pixel format enum in touch example
Fix a call to `wlr_surface_attach_pixels()` in the main method of the touch
example to use the correct enum for this method (wayland instead of gl).
2017-07-31 14:54:00 -04:00
Drew DeVault
f08998627f Merge pull request #36 from acrisci/bug/supported-cursor-pixel-format
Use ARGB8888 pixel format for cursor bo
2017-07-30 16:06:06 -04:00
Scott Anderson
5743ea03b8 Merge pull request #37 from acrisci/bug/session-path
Correctly get session path
2017-07-30 00:44:50 +12:00
Tony Crisci
5eeb067838 Correctly get session path
The old way of getting the session path was to simply append the session id to
the path "/org/freedesktop/login1/session/". However this is not the correct
path for newer systems like Fedora 26.

Instead, get the session path directly from the session manager from the id via
a dbus call to GetSession().

fixes #35
2017-07-29 08:16:14 -04:00
Tony Crisci
d822e0768b Use ARGB8888 pixel format for cursor bo
The previous pixel format (RGBA8888) is not supported on all devices for cursors.

Weston uses ARGB8888 exclusively for its cursor buffer object which leads me to
believe this pixel format is better supported.
2017-07-27 17:55:35 -04:00
Drew DeVault
b1ec0dce3a Merge pull request #34 from acrisci/bug/fix-cleanup-pageflip-race
bugfix: add null check on output gbm on pageflip
2017-07-24 20:36:33 -04:00
Drew DeVault
3dd6a06df0 Merge pull request #33 from acrisci/bug/fix-software-cursor
bugfix: fix cursor software rendering fallback
2017-07-24 20:36:22 -04:00
Tony Crisci
8b6dc48355 bugfix: add null check on output gbm on pageflip
The gbm for the output might be null for the pageflip in the case that
the output has been disconnected. The gbm might be set to null by
wlr_drm_output_cleanup() in this case.

If the output is cleaned up before the pageflip, then a double free
will crash the compositor on the call to gbm_surface_release_buffer()
in the pageflip handler. The outputs buffer object bo[1] will point to
invalid memory.
2017-07-24 19:50:13 -04:00
Tony Crisci
a43016b8e2 bugfix: fix cursor software rendering fallback
wlr_surface_attach_pixels() expects a wl_shm_format but a GL format was
given. This caused a bug where software rendering of the cursor would
fail when no pixel format can be found.
2017-07-24 16:34:40 -04:00
Drew DeVault
13f3c69ec6 Fix LTO (fixes #26) 2017-07-18 09:48:18 -04:00
Drew DeVault
23d2301496 Oh my god Clang seriously just fuck off 2017-07-12 10:16:33 -04:00
Drew DeVault
ec0f4c2d99 Fuck off, clang 2017-07-12 09:54:58 -04:00
Drew DeVault
e92a65fee8 Remove use of missing header 2017-07-12 09:49:26 -04:00
Drew DeVault
699b364787 Merge pull request #30 from mikkeloscar/add-travis
Build on travis-ci.
2017-07-12 09:24:42 -04:00
Drew DeVault
73a908665d Fix unused variables in release builds 2017-07-12 09:24:11 -04:00
Mikkel Oscar Lyderik Larsen
413bfc7fb8
Build on travis-ci. 2017-07-12 14:31:43 +02:00
Drew DeVault
b08aa9fd35 Revert "Merge pull request #27 from ascent12/meson"
This reverts commit 85805da021, reversing
changes made to 8189c64d7f.
2017-07-11 22:16:56 -04:00
Drew DeVault
7b9c330bc5 Revert "Fixed linking error"
This reverts commit c81324bd0b.
2017-07-11 22:16:52 -04:00
Scott Anderson
c81324bd0b Fixed linking error 2017-07-12 13:46:47 +12:00
Drew DeVault
85805da021 Merge pull request #27 from ascent12/meson
[Proposal] Use the Meson build system
2017-07-11 20:15:28 -04:00
Scott Anderson
e54b1eded4 Small linking fix 2017-07-11 12:24:43 +12:00
Scott Anderson
a2ba226ba3 Use subdir 2017-07-11 09:56:54 +12:00
Scott Anderson
924bf0f669 Changed build system to meson 2017-07-11 00:28:56 +12:00
Scott Anderson
8189c64d7f Fixed that warnings that showed up with optimisations. 2017-07-11 00:14:55 +12:00
Drew DeVault
be064df25e Merge pull request #25 from ascent12/forking
Forking session backend
2017-07-09 22:28:19 -04:00
Scott Anderson
ceef12cb5a Exit cleanly if we cannot open Wayland socket. 2017-07-10 13:46:15 +12:00
Scott Anderson
5b8ec107b9 Session documentation. 2017-07-09 23:02:41 +12:00
Scott Anderson
3779ef802d Stop remembering the drm fd in child. 2017-07-09 22:23:54 +12:00
Scott Anderson
2f2c8205d8 Moved IPC to its own file. 2017-07-09 22:12:50 +12:00
Scott Anderson
bd5bca5283 Added public fields to wlr_session 2017-07-09 17:53:13 +12:00
Scott Anderson
f413a67bb1 Removed KDSKBMUTE. This actually isn't supported by Linux. 2017-07-09 13:34:33 +12:00
Scott Anderson
2c27ed1393 include fixes 2017-07-04 12:50:54 +12:00
Scott Anderson
dd40a42a99 Make libcap optional. 2017-07-04 00:29:03 +12:00
Scott Anderson
5c211e6195 Added forking 2017-07-04 00:15:09 +12:00
Scott Anderson
c2b54be74a Minor fixes 2017-07-03 19:56:14 +12:00
Scott Anderson
60955addc0 Added direct session support 2017-07-03 14:46:20 +12:00
Drew DeVault
8920b5d607 Merge branch 'wlcore' 2017-06-29 16:00:24 -04:00
Drew DeVault
486ec5953c Add shim implementations of wl_{compositor,shell}
To example compositor
2017-06-28 18:51:58 -04:00
Drew DeVault
28736c5787 Move example -> examples
And the compositor example into its own directory
2017-06-28 18:23:49 -04:00
Drew DeVault
18e6ddc1c5 Remove wlr_compositor 2017-06-28 17:25:01 -04:00
Drew DeVault
97f6e9b69a Remove excessive logging in wayland backend 2017-06-28 16:35:18 -04:00
Drew DeVault
ce471f3371 Merge pull request #23 from ascent12/cursor
Software cursor + Hardware cursor improvements
2017-06-26 18:23:52 -04:00
Drew DeVault
97213cc00e Add new interfaces to wayland backend 2017-06-26 18:23:38 -04:00
Drew DeVault
038dfdbc85 Log max cursor size on error 2017-06-26 10:34:26 -04:00
Drew DeVault
f5b7bc033e Add wlr_wl_compositor and remove wlr_wl_shm 2017-06-26 10:26:55 -04:00
Scott Anderson
82322d81a7 Hardware cursor improvements. 2017-06-26 19:32:36 +12:00
Scott Anderson
0cd94f0cf0 Added software cursor fallback 2017-06-26 17:34:15 +12:00
Drew DeVault
8a18cf456a Remove endian.h
Fuck big endian systems anyway
2017-06-23 14:46:18 -04:00
Drew DeVault
5a2796266f Support wl_shm pixel formats in gles2 renderer 2017-06-23 14:25:55 -04:00
Drew DeVault
2aafb5dd19 Add wlcore/wl_shm (WIP) 2017-06-23 13:41:07 -04:00