summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* nested: add missing egl extension declarationArnaud Vrac2014-08-271-0/+8
| | | | Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* window: unbind egl surface and context on surface releaseArnaud Vrac2014-08-271-2/+2
| | | | | | Binding null read and write surfaces to an egl context is not standard Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* Document output/scale configuration option in the weston.ini man page.Magnus Hoff2014-08-271-0/+12
| | | | | | | | | v2: Different, hopefully better, wording. This patch entirely replaces the previous similar patch I sent. v3: Now including the correct patch. Please disregard the "v2" mail. Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* desktop-shell: Replace magic constants with named onesOndřej Majerech2014-08-271-2/+9
| | | | | Signed-off-by: Ondřej Majerech <majerech.o@gmail.com> Reviewed-by: Nils Chr. Brause <nilschrbrause@gmail.com>
* protocol: fix a wrong word in wl_viewport.set_sourcePekka Paalanen2014-08-271-1/+1
| | | | | | | Obvious this affects the source, not destination. Reported-by: Jasper St. Pierre <jstpierre@mecheye.net> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* xwayland: Clean up the WM properly if X server crashesDima Ryazanov2014-08-271-2/+4
| | | | | | | | | The X cleanup code uses wxs->wm to check if the WM has been created - but that variable was never initialized. So if X crashes, the WM doesn't get destroyed, causing a crash when it tries to repaint a window. Signed-off-by: Dima Ryazanov <dima@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* configure.ac: require libwayland 1.5.91Pekka Paalanen2014-08-261-4/+4
| | | | | | | | | | Compositor needs the wl_surface error enums and the keyboard repeat info protocol added in 1.5.91. weston-info, window.c, and Weston's wayland backend need also the keyboard repeat info. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* configure.ac: Bump version to 1.5.91 for the alpha release1.5.91Pekka Paalanen2014-08-221-1/+1
| | | | Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* tests: allow running make check without make installDerek Foreman2014-08-226-4/+32
| | | | | | | | | | | | | desktop shell and weston keyboard both refer to themselves prefixed by LIBEXECDIR, however this is only valid once installed. make check will currently either fail or run pre-existing versions. This patch adds a way to override that location by setting the env var WESTON_BUILD_DIR - which is then set by the test env script so make check will test the versions in the build directory regardless of whether they're installed or not. Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* build: do not run xwayland test for distcheckPekka Paalanen2014-08-221-1/+2
| | | | | | | | | | The Xwayland test has been broken ever since the migration to the stand-alone Xwayland server binary. Disable the test, so 'make distcheck' can actually run. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Boyan Ding <stu_dby@126.com>
* build: use AM_DISTCHECK_CONFIGURE_FLAGSPekka Paalanen2014-08-221-1/+1
| | | | | | | | | | | | | According to http://www.gnu.org/software/automake/manual/html_node/Checking-the-Distribution.html the DISTCHECK_CONFIGURE_FLAGS is for the user, while AM_DISTCHECK_CONFIGURE_FLAGS is the one to use in Makefile.am. Make it so. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Boyan Ding <stu_dby@126.com> Reviewed-by: Marek Chalupa <mchqwerty@gmail.com>
* xdg-shell: bump experimental protocol versionPekka Paalanen2014-08-216-6/+6
| | | | | | | | | | | | | | | | | | | | The experimental versioning has not been updated when it was supposed to. Let's try to be better at it now, as xdg-shell is close to have its first stable version. Bump the version now to bring the world into the same exact version. There may be some protocol changes still coming, but we try to land them before 1.6 gets out. Those changes will bump the experimental version again as needed. When 1.6.0 is released, the experimental version will no longer be bumped, and no incompatible protocol changes will be made. Xdg-shell.xml file will move to Wayland in 1.7.0, drop the experimental versioning, and become stable. Cc: Jasper St. Pierre <jstpierre@mecheye.net> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* weston-test: check if resource is not NULLMarek Chalupa2014-08-211-0/+5
| | | | | | and post client_no_memory if is... Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* screen-share: Add screen-share command to weston.ini man pageAndrew Wedgbury2014-08-211-0/+9
| | | | | | | | | | | This adds a description of the screen-share command configuration key to the weston.ini man page. [Pekka Paalanen: removed the sentence about default value, because the default value is empty, and AFAIU cannot work.] Signed-off-by: Andrew Wedgbury <andrew.wedgbury@realvnc.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* desktop-shell: use panel location to calculate correct sizes and rangesJonny Lamb2014-08-201-53/+120
| | | | | | | | Now the client can let us know where the panel is using desktop_shell.set_panel_position, we can correctly calculate where to put new views and how big maximized views should be. Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* desktop-shell: add set_panel_position to help place views onscreenJonny Lamb2014-08-203-4/+54
| | | | | | | | | | | | | | Panels are always assumed to be on the top edge of the output. If this is not the case views will be placed under the panel, wherever it is, and maximize doesn't use the correct space allocated for views. By telling the server on which edge the panel is located, it can correctly calculate where to put new views and how big maximized views should be. [Pekka Paalanen: the user of this protocol so far is Maynard.] Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* weston.ini.man: Add libinput sectionJonas Ådahl2014-08-201-0/+14
| | | | Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
* build: cliptest uses also vertex-clipping.hPekka Paalanen2014-08-201-1/+4
| | | | | | Add it to the list of source files. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* cliptest: sync calculate_edges with master copyPekka Paalanen2014-08-201-45/+47
| | | | | | | | | | | | | The master copy of calculate_edges() lives nowadays in gl-renderer.c. Copy it verbatim from gl-renderer.c into cliptest.c. Update cliptest.c for the following changes that happened in Weston core, vertex.clipping.c, and gl-renderer.c: - replace GLfloat with float - introduction of weston_view, here replacing weston_surface - API change of weston_view_to_global_float Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* Don't underrun the vertex array of empty polygonsOndřej Majerech2014-08-201-0/+12
| | | | | | | | | | | | | | This silences the following warning: src/vertex-clipping.c:196:22: warning: array subscript is below array bounds [-Warray-bounds] ctx->prev.x = src->x[src->n - 1]; [Pekka Paalanen: the src->n < 2 comparison comes from the fact that a polygon with 0 or 1 points is not a polygon. A polygon with 2 points is still degenerate, but at least it has two edges that can be clipped.] Signed-off-by: Ondřej Majerech <oxyd.oxyd@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* Remove duplicated code from cliptest.cOndřej Majerech2014-08-202-291/+4
| | | | | Signed-off-by: Ondřej Majerech <oxyd.oxyd@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* Don't protect xkb_*_unref from NULLRan Benita2014-08-204-12/+6
| | | | | | | Since xkbcommon-0.3.0, which is required by weston, a NULL argument doesn't do anything. Signed-off-by: Ran Benita <ran234@gmail.com>
* Replace deprecated xkbcommon symbols with current namesRan Benita2014-08-206-68/+72
| | | | | | | | | | | These symbols (xkb_map_* and others) were replaced in xkbcommon with more consistent names. See the header xkbcommon/xkbcommon-compat.h for how the old names map to the new. The new names have been available since the first stable xkbcommon release (0.2.0). Signed-off-by: Ran Benita <ran234@gmail.com>
* configure.ac: use libinput by defaultPekka Paalanen2014-08-201-2/+2
| | | | | | | | | | | | Libinput is stabilizing soon, so let's flip the default switch now. The old input code will still be carried as an option for a while. Cc: Peter Hutterer <peter.hutterer@who-t.net> Cc: Jonas Ådahl <jadahl@gmail.com> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com> Acked-by: Jonas Ådahl <jadahl@gmail.com>
* cairo-util: Draw solid titlebar for frames with only buttonsBoyan Ding2014-08-193-5/+10
| | | | | | | | Previously geometry was changed to leave space for titlebar if a frame has only buttons but no title. This patch fixes theme_render_frame to avoid transparent titlebar. Signed-off-by: Boyan Ding <stu_dby@126.com>
* xwm: check whether the picked seat can be NULLBoyan Ding2014-08-191-2/+2
| | | | | | | | | | The seat picked in weston_wm_window_handle_moveresize can sometimes be NULL when it is (somehow) triggered with all buttons released. This patch checks whether the seat is NULL to avoid NULL dereference. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=80837 Signed-off-by: Boyan Ding <stu_dby@126.com>
* cliptest: Avoid use of uninitialized memory when regions don't intersectDerek Foreman2014-08-191-5/+7
| | | | | | | | Prevent attempting to draw the intersection polygon when it contains no vertices. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* weston-scaler --help works even if not run inside waylandBill Spitzak2014-08-191-6/+6
|
* weston-image --help works. Also help if no filename is givenBill Spitzak2014-08-191-0/+5
|
* weston-editor --help worksBill Spitzak2014-08-191-5/+10
|
* weston-dnd --help worksBill Spitzak2014-08-191-5/+10
|
* weston-cliptest --help works. You must use -b to run benchmarkBill Spitzak2014-08-191-2/+6
|
* weston-terminal --help and other command-line optionsBill Spitzak2014-08-191-0/+11
| | | | Option array existed but was unused. Added --font-size.
* Made weston-screensaver --help workBill Spitzak2014-08-191-2/+6
|
* Made weston-subsurfaces --help workBill Spitzak2014-08-191-2/+2
|
* Made weston-nested --help workBill Spitzak2014-08-191-2/+5
|
* weston-eventdemo --help worksBill Spitzak2014-08-191-9/+33
| | | | | Also defaults to printing all events if you specify none. Removed incorrect "-0" switch which would turn on one of them.
* shell: Update focused surface pointer coordinates in popup grabJonas Ådahl2014-08-181-0/+5
| | | | | | | | | | | | | The commit 'input: Send leave and enter pair when the surface moves under the cursor' introduced focused surface local pointer coordinates to keep track of if a surface had been moved or transformed in a way that the pointer posititon relative to that surface would change. Update these coordinates also for the popup grab as otherwise every pointer motion during a popup grab results in leave and then enter events. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* gears: fix invalid calculation of the first FPSRyo Munakata2014-08-181-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | At the calculation of the first FPS, gears has initialized last FPS time with gettimeofday(). But the callback_data passed in the callback of wl_surface_frame() is the current time, in milliseconds, with an undefined base. Because of this subtracting last FPS time from callback_data makes no sense. For example, below is the result of running weston-gears on weston with drm backend: $ weston-gears Warning: FPS count is limited by the wayland compositor or monitor refresh rate 1 frames in 1094460.125 seconds = 0.000 FPS 301 frames in 5.016 seconds = 60.008 FPS 301 frames in 5.016 seconds = 60.008 FPS 301 frames in 5.016 seconds = 60.008 FPS As you can see, the the first FPS value is something odd. This patch fixes it by initializing last FPS time with the callback_data passed in the first callback. Reviewed-by: Nils Chr. Brause <nilschrbrause@gmail.com>
* desktop-shell: add close-animation config option for destroying surfacesJonny Lamb2014-08-183-2/+16
| | | | | | | At the moment when surfaces are destroyed they are faded out but let's make it configurable! Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* desktop-shell: add option to avoid creating the panelJonny Lamb2014-08-182-7/+36
| | | | | | | | This option is so we can disable showing any panel at all. The default is to continue showing the panel and no example is added to weston.ini because it's an uncommon request. Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* Implemented support for mouse scrolling in weston-terminalMagnus Hoff2014-08-151-0/+51
| | | | [Pekka Paalanen: fixed some code style issues]
* simple-egl: Clean up unused frame_listenerBoyan Ding2014-08-151-6/+0
| | | | | | | Unused since commit 1e65840b6103197a684a551925a58fb1ae6c40e3 Signed-off-by: Boyan Ding <stu_dby@126.com> Reviewed-by: Nils Chr. Brause <nilschrbrause@gmail.com>
* clients: use repeat_info event detailsJonny Lamb2014-08-152-6/+132
| | | | | The weston-info client prints out the values, and the values are respected in toytoolkit when actually repeating keys..
* compositor-wayland: listen to repeat_info and save values to pass onJonny Lamb2014-08-151-3/+22
|
* compositor: fetch repeat info from weston.iniJonny Lamb2014-08-154-3/+25
|
* libinput: Add tap configuration to weston.iniJonas Ådahl2014-08-153-1/+29
| | | | | | | | | | | Enable by adding the following to your weston.ini: [libinput] enable_tap=true This also makes weston require libinput >= 0.5.0. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
* screenshooter: Add a missing return; in an error pathJasper St. Pierre2014-08-081-0/+1
|
* desktop-shell: Add a missing return; in an error pathJasper St. Pierre2014-08-081-0/+1
|
* Don't bother destroying resources after sending an errorJasper St. Pierre2014-08-084-6/+0
| | | | | | | | | | An error makes the client exit, which cleans up the resources anyway. Note (Jason Ekstrand): This is safe for two reasons. First, we should be handling object destruction nicely anyway. Second, in each of these cases, the resources don't have any implementation or destruction set so it has absolutely no effect on the rest of weston whether we destroy it now or later.