summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* configure.ac: Bump version to 1.0.51.0.5Kristian Høgsberg2013-02-141-2/+2
|
* window.c: Don't allow moving a maximized windowKristian Høgsberg2013-02-141-0/+6
| | | | | | | | Ideally the shell would send an unmaximize event to the client when we try to move a maximized window, but for now, let's just prevent moving maximized windows. https://bugs.freedesktop.org/show_bug.cgi?id=56296
* shell: Bypass fullscreen scaling if surface width and height match outputRob Bradford2013-02-141-0/+7
| | | | | | | | | | If our surface has width and height set to the same dimensions as the output then we can bypassing the scale factor calculation and addition of the transformation. The use case that led to this optimisation is the playback of video using gstreamer-vaapi with the "scale" method. The video is the same dimensions as the output (1080p.)
* weston-launcher: Add missing newline in error messageMartin Andersson2013-02-141-1/+1
|
* configure.ac: Add version to bug URL as wellKristian Høgsberg2013-02-141-1/+1
|
* configure.ac: Change bugs.freedesktop.org product to WaylandScott Moreau2013-02-141-1/+1
| | | | | | | | | Update the bug link. Thanks to Rune K. Svendsen for spotting this. https://bugs.freedesktop.org/show_bug.cgi?id=60818 Conflicts: configure.ac
* compositor: Init fade surface color properlyAnder Conselvan de Oliveira2013-02-141-1/+1
| | | | | | | When fading in, if a repaint was triggered after a call to weston_compositor_fade() but before the first call to fade_frame(), the fade surface wouldn't be drawn because its alpha channel wasn't initialized properly.
* screenshot: Print warning if we're not launched from westonKristian Høgsberg2013-02-141-0/+7
| | | | | | weston-screenshooter is a helper binary that weston launches to write the screenshot to disk. If somebody tries to launch it by hand, print a warning and mention the screenshot keybinding.
* tests: fix assignment typo, should be comparisonU. Artie Eoff2013-02-141-1/+1
| | | | Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* Add --version optionScott Moreau2013-02-142-1/+12
|
* weston-launch: Clear environment and set it up from scratchKristian Høgsberg2013-02-141-6/+6
| | | | | | | | | | | With recent systemd[1] XDG_VTNR will leak through to pam, which ends up setting a vtnr pam argument with the wrong value. The fix is to clear XDG_VTNR first, but what we should have been doing all along is resetting the environment. Thanks to Ray Strode for helping debug this. [1] http://cgit.freedesktop.org/systemd/systemd/commit/?id=a8573ccc35a4efe8900be5d48c6c803670540c2b
* toytoolkit: Remove left-over pixman dependencyKristian Høgsberg2013-02-142-4/+1
| | | | | | | toytoolkit doesn't use pixman. Remove the pixman.h include and the LDADD. https://bugs.freedesktop.org/show_bug.cgi?id=57812
* Add new shared/image-loader.h to separate include dependenciesKristian Høgsberg2013-02-147-8/+37
| | | | | | | | | | | | | | Before, cairo-util.h would combine pixman and cairo includes. X11 and Wayland compositors uses this to load an image as a pixman_image_t but are forced to include cairo headers. Clients use load_cairo_surface to load images as cairo_surface_t's, but are forced to include pixman.h. We move the load_image pixman prototype to its own header, so compositors can get at the pixman prototype without including cairo.h and clients can include the cairo based function without including pixman.h. Conflicts: src/compositor-wayland.c
* clients: Make libtoytoolkit a libtool libraryKristian Høgsberg2013-02-141-23/+24
| | | | | | | | | This way libtool will remember the libtoytoolkit LIBADD libraries. We can drop the toolkit_libs hack and just link to libtoytoolkit.la and libtool will add the dependencies. Conflicts: clients/Makefile.am
* terminal: Handle the window close eventDima Ryazanov2013-02-141-0/+9
| | | | | | There may be multiple windows open, so destroy the terminal instead of exiting. Signed-off-by: Dima Ryazanov <dima@gmail.com>
* configure.ac: Bump version to 1.0.41.0.4Kristian Høgsberg2013-01-241-1/+1
|
* weston-launch: Use "weston-launch" for --help instead of "weston".Scott Moreau2013-01-241-1/+1
| | | | | The output of weston-launch --help was "Usage: weston [args...] ...". This changes it to read "Usage: weston-launch [args...] ...".
* tests: make signal other than ABRT a hard failurePekka Paalanen2013-01-241-1/+5
| | | | | | | | | | | | | | | We handle FAIL_TEST tests by simply inverting the success flag. The problem with this is, that if a FAIL_TEST fails by a SIGSEGV, it will be interpreted as passed. However, no code should ever cause a SEGV, or any other signal than ABRT. And even ABRT only in the case of an assert() that is meant to fail. We would probably need more sophistication for the FAIL_TEST cases. For now, just interpret any other signal than ABRT as a hard failure, regardless whether it is a TEST or FAIL_TEST. At least segfaults do not cause false passes anymore. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
* Weston: weston.ini.man pageMartin Minarik2013-01-242-3/+338
| | | | | | changes: - launcher path, passing environment variables and parameter - indent modeline example
* compositor-drm: Remove drm_disable_unused_sprites()Ning Tang2013-01-101-36/+0
| | | | | | | | | | | | | | | If a sprite is no longer used, it is disabled on the call to drmModeSetPlane() when doing the output repaint, since its pending_fb_id is 0. This patch is a backport patch on weston 1.0. Originally from Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> commit 3b2bd44d924744fa4635390e91afe569351e7d8d Some platform has a heavy CPU load caused by redundant drmModeRmFB, which is called in drm_disable_unused_sprites and would trigger drm_err. Signed-off-by: Ning Tang <ning.tang@intel.com>
* configure.ac: Bump version to 1.0.31.0.3Kristian Høgsberg2012-12-141-1/+1
|
* tests: Pass --backend so the test suite runs with the right modulesKristian Høgsberg2012-12-141-1/+11
| | | | | | | | | Without this we try to load the installed backends, which is nasty for regular runs, and just doesn't work for make distcheck, which sets prefix to $PWD/_inst. This makes sure we load the right backend and make distcheck pass. Other modules (xwayland, shells etc) just don't get loaded for distcheck and for make check we still try to load the installed modules.
* tests: remove test logs on 'make clean'Pekka Paalanen2012-12-141-0/+3
| | | | Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
* text-test: Remove left-over WAYLAND_DEBUG setenv callKristian Høgsberg2012-12-141-2/+0
|
* clients: Add screenshooter-client-protocol.h to screenshooter sourcesKristian Høgsberg2012-12-141-1/+4
|
* update git ignoresPekka Paalanen2012-12-121-0/+1
| | | | Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
* tests: check wl_display_roundtrip() for errorsPekka Paalanen2012-12-125-10/+13
| | | | | | | | | | | | Add a macro that wraps wl_display_roundtrip() and check for errors. It is a macro, so that the assert would show the relevant file and line number. This will also catch protocol errors, that would go unnoticed otherwise. All roundtrips in tests are replaced with the check. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
* tests: set client log handlerPekka Paalanen2012-12-121-0/+9
| | | | | | | Otherwise we cannot normally see protocol errors etc. in the test output. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
* tests: write logs to filesPekka Paalanen2012-12-122-3/+16
| | | | | | | | | | | | | This cleans up the 'make check' output considerably. When all goes well, you will only see the "PASS" line for each of $TESTS. Weston logs into a separate file than stdout and stderr, so server logs end up in one file per test, and other output to another file per test. 'make distclean' does not remove the tests/logs/ directory. Also changes the weston-tests-env interpreter to bash, since I think &> and ${1/.la/.so} might be bashisms.
* tests: Convert remaining module tests to not use test-runner.cKristian Høgsberg2012-12-125-200/+33
| | | | | | The remaining module tests don't need to fork and talk to a test client, so just convert them to regular modules and let them handle running their tests themselves. Then drop test-runner.[ch].
* tests: Remove client-test testKristian Høgsberg2012-12-123-546/+0
| | | | | | This test case is the last user of the test-client code and it only tests launching the test-client. In other words it's a minimal test of the framework we're dropping, so just drop this test.
* tests: Port text-test to new test frameworkKristian Høgsberg2012-12-125-430/+135
| | | | So much simpler this way and the test suite is now back too 100% pass.
* tests: Drop yield() helper functionKristian Høgsberg2012-12-114-31/+4
| | | | | | Remaining use case was when we move the pointer. This doesn't change geometry so we can just use a wl_display_roundtrip() to make sure we get the request to the server and receive the resulting events.
* keyboard-test: Use wl_display_roundtrip() instead of yield()Kristian Høgsberg2012-12-111-4/+2
| | | | | | | As for button-test, a wl_display_roundtrip is sufficient here. The yield() between wl_test_activate_surface() and wl_test_send_key() is also not needed, since the two requests will arrive at the server in order, and will activate the surface first, then send a key event.
* button-test: Use wl_display_roundtrip instead of yield()Kristian Høgsberg2012-12-111-2/+2
| | | | | | | | | | A round trip is sufficient here. We need to make sure that the server has received the wl_test request and that we've received the event that the request triggers. The wl_display_roundtrip() helper does exactly that: it sends a wl_display.sync request, which will hit the server after the wl_test requests and thus the wl_callback.done event will come back after the server has seen all the previous requests and after we've handled all preceeding event.
* weston-test-client-helper: Use a frame callback to flush surface geometryKristian Høgsberg2012-12-111-2/+24
| | | | | | | | When moving a test surface, use a frame callback to make sure the surface has been moved and the geometry updated. The compositor may delay updating the transform matrices, but once we get the frame callback we know the surface has been repainted and the geometry updated.
* tests: Convert button-test to new test extensionU. Artie Eoff2012-12-113-111/+32
| | | | | | Fixes https://bugs.freedesktop.org/show_bug.cgi?id=56821 Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* tests: Convert event-test to new test extensionU. Artie Eoff2012-12-113-265/+272
| | | | | | Fixes https://bugs.freedesktop.org/show_bug.cgi?id=56819 Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* tests: Convert keyboard-test to new test extensionU. Artie Eoff2012-12-117-103/+835
| | | | | | | | | | | | This adds a weston-test-runner for the weston test extension and some weston test client helper methods. Converted keyboard-test to use the new test interface, runner, and helper methods. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=56822 Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* tests: Allow weston-tests-env to process different test typesU. Artie Eoff2012-12-111-1/+9
| | | | | | | The weston-tests-env script needs to be able to handle weston test extension style tests as well as module style tests. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* tests: Rename weston-test to weston-tests-envU. Artie Eoff2012-12-112-2/+2
| | | | | | | Renamed weston-test test environment script to weston-tests-env to avoid ambiguity with weston-test.c (the weston test extension). Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* tests: Define and implement a test protocol extension.U. Artie Eoff2012-12-115-6/+338
| | | | | | | | | | | The weston test extension, called weston-test.so, can be loaded from the "modules" configuration option on the command line or in the .ini file. Clients can bind to the "wl_test" interface to interact with the weston test extension. Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
* shell: Remove confusing case fall-throughRob Bradford2012-12-111-0/+1
| | | | | | | | | | This avoids calling weston_surface_set_position twice on the same surface. The second call has no effect in many cases because sx and sy are usually zero on this path. This change now means that any sx/sy values passed into ::attach will be ignored on the first attach for popup surfaces. This similar to the behaviour for other surface types.
* weston-launch: Add some error reporting for weston-launchRob Bradford2012-12-111-0/+7
| | | | This also avoids us passing (size_t)(-1 * sizeof(gid_t)) into malloc
* compositor: Cleanup if we can't find the symbol in the moduleRob Bradford2012-12-111-0/+1
|
* backlight: Revamp error handling code to not leak the directoryRob Bradford2012-12-111-8/+9
| | | | | To neatly free the directory pointer allocated by opendir(), adjust the error handling paths to go through to the err label.
* tty: Clean up completely if switching vt failsRob Bradford2012-12-111-1/+1
| | | | | The code under the "err" label closes the file descriptor and frees the allocated memory.
* xwayland: Close fd opened for lockfile on error pathRob Bradford2012-12-111-0/+3
|
* backlight: Remove unnecessary and confusing NULL checksRob Bradford2012-12-111-4/+2
| | | | | | At this point path must point to an allocated string since otherwise the asprintf that makes the allocation would have failed and we would have returned earlier.
* compositor: Avoid sending event for invalid pointRob Bradford2012-12-111-0/+7
| | | | | Avoid sending a touch down event using uninitialised surface x/y co-ordinates. Instead present a log message about this unexpected case.