summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-12-01packaging: use libva if availablesandbox/pcoval/tizenPhilippe Coval1-0/+4
Change-Id: I8fdc4ea28f89f31b935af98a831e70170afd3549 Bug-Tizen: TC-236/2of2 Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
2014-11-26Multiseat support for drm/wayland backendssubmit/tizen/20141126.141815accepted/tizen/mobile/20141128.015213accepted/tizen/common/20141126.172851Imran Zaman14-147/+486
Change-Id: I04f04df98c2f76cf09b5d4d14867f918919aeb15 Signed-off-by: Imran Zaman <imran.zaman@intel.com>
2014-11-21Added string conversion utility functionsImran Zaman12-29/+535
Change-Id: I50900852311604a8c31313bbfb1d137c495d2269 Signed-off-by: Imran Zaman <imran.zaman@intel.com>
2014-09-25compositor-drm: Work around page flip not setting tiling mode on BYTsubmit/tizen_common/20141127.123634submit/tizen_common/20141119.172306submit/tizen_common/20141118.142721submit/tizen_common/20141118.114838submit/tizen/20141119.162904accepted/tizen/common/20141127.132314accepted/tizen/common/20141121.104003sandbox/mbachmann/weston160Quanxian Wang1-2/+8
The page flip ioctl() doesn't switch the tiling mode on BYT. That causes cause display corruption when doing the renderer switch, since the dumb buffer is untiled and the back buffers used by the GL renderer are use X tiling. Change-Id: I2f03ac44c1aa15e15b5a2a394932e94af2654124 Author: Quanxian Wang <quanxian.wang@intel.com> Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
2014-09-25downstream: Hack to allow selecting a default outputRafael Antognolli4-3/+23
This code originally by Rafael Antognolli <rafael.antognolli@intel.com> was commited by Stephane Desneux <stephane.desneux@open.eurogiciel.org> as a packaging patch. Change-Id: I9c8a452b0bd9369217578fdf6cf43d86e11f45c6 Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
2014-09-25downstream: allow regular users to launch WestonStephane Desneux2-0/+10
Change-Id: I04ac3457aebdcd629ee70e6915f71bce89f9cea8 Author: Stephane Desneux <stephane.desneux@open.eurogiciel.org> Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
2014-09-25packaging: Bump to 1.6.0sandbox/mbachmann/weston160_vanillaManuel Bachmann5-0/+349
Change-Id: Ia40f3b13078b77dd74d2a29b069768e98fab7f5e Signed-off-by: Manuel Bachmann <manuel.bachmann@open.eurogiciel.org>
2014-09-19configure.ac: bump version to 1.6.01.6.0Pekka Paalanen1-2/+2
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-17editor: do not crash when text input manager is not availableOlivier Blin1-0/+5
[Pekka Paalanen: whitespace fix] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-17keyboard: do not crash when input panel is not availableOlivier Blin1-0/+5
[Pekka Paalanen: whitespace fix] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-15compositor-x11: Rename the output make to "weston-X11"Jason Ekstrand1-1/+1
Previously all outputs in the X11 backend had the make "xwayland" which is confusing. Now they have something that makes a little more sense.
2014-09-15window: Don't needlessly sync parent and geometryOndřej Majerech1-0/+12
When a toytoolkit client redraws, the toolkit syncs the parent and geometry. If a client redraws often (such as the terminal drawing a huge amount of output), this can spam the compositor with requests and may result in the client's eventual being killed. We don't need to send requests for changing the geometry or parent if these haven't changed. So remember the last geometry and parent, and update them only if needed. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83297 Signed-off-by: Ondřej Majerech <majerech.o@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-12configure.ac: bump version 1.5.93 for rc21.5.93Pekka Paalanen1-1/+1
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-12libinput: default to INFO log levelPekka Paalanen1-8/+8
Set the default logging level from libinput to INFO. This matches better the behaviour of the old input backend, and prints the found input devices into Weston's log. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Acked-by: Jonas Ådahl <jadahl@gmail.com>
2014-09-12libinput-device: Don't get initial key statesJonas Ådahl1-30/+0
Initial key state is no pressed keys, and the libinput_device_get_keys function was deprecated in libinput 0.6.0. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2014-09-12libinput: normalize WL_CALIBRATION before passing it to libinputPeter Hutterer2-1/+88
WL_CALIBRATION, introduced in weston-1.1, requires the translation component of the calibration matrix to be in screen coordinates. libinput does not have access to this and it's not a very generic way to do this anyway. So with the libinput backend, WL_CALIBRATION support is currently broken (#82742). This cannot be fixed in libinput without changing its API for this specific use-case. This patch lets weston take care of WL_CALIBRATION. It takes the original format and normalizes it before passing it to libinput. This way libinput still does the coordinate transformation, weston just needs to provide the initial configuration. Note that this needs an updated libinput, otherwise libinput will try to transform coordinates as well. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=82742 Reviewed-by: Jonas Ådahl <jadahl@gmail.com> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-12compositor: Don't free an uninitialised pointer.Ondřej Majerech1-1/+2
When backend_init returns NULL, we goto out_signals, which wants to free(modules), but in this particular code path, modules hasn't been initialised leading to a "Double-free or corruption" error message. Initialising modules to NULL makes the free a no-op in this scenario. Signed-off-by: Ondřej Majerech <majerech.o@gmail.com> Reviewed-by: Ryo Munakata <ryomnktml@gmail.com>
2014-09-11image: don't print redundant errorBill Spitzak1-1/+0
This error is printed by load_image() now Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-11load_image: always print a message on failure if filename is not emptyBill Spitzak1-2/+12
It was rather inconsistent before. This may help users figure out why backgrounds and icons don't show up. A better api where the error can be queried might be nice, but this seems sufficient for current Weston use. [Pekka Paalanen: removed one stray space.] Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-11parse_options: fail on more malformed optionsBill Spitzak1-28/+69
Fail on trailing text after numbers, such as --width=100mm Fail on any text after booleans, such as --flag=false Also fixed reading of memory after the null terminator of a long option with no = sign in it. [Pekka Paalanen: some whitespace style fixes.] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-11cosmetic: update comments that refer to weston_surface_update_transform()Derek Foreman3-4/+4
weston_surface_update_transform() no longer exists, except in comments. Fix that. [Pekka Paalanen: don't lose the full comment in compositor-drm.c.] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-11Partially revert "xdg-shell: Add show_window_menu request"Pekka Paalanen1-7/+49
This reverts the parts of commit 81ff075bf48c55cd07e37784e20c310fa52ed926 that touch window.c. This brings the toytoolkit window context menus back, until someone implements the xdg-shell equivalent in the compositor. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=82972 Acked-by: Jasper St. Pierre <jstpierre@mecheye.net> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-10xdg-shell: fix maximizing in multi-head setupMarek Chalupa1-3/+4
Set the right position of maximized window. Up until now we ignored output's "position" and were using only the working area of output which is in output-relative coordinates. This led to showing the maximized window always on the first output. This, along with the previous patch, fixes https://bugs.freedesktop.org/show_bug.cgi?id=82967 Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-10xdg-shell: update shsurf->output when maximizingMarek Chalupa1-26/+34
shsurf->output is the output that user expects the shell surface is on. When maximizing, we don't have any explicit setting of the output like in the case of fullscreening, so set the output to the one that the surface is currently on. In the case that the surface is not mapped yet, (if it ever happens) use the same heuristics as for fullscreening. This fixes the size sent with configure event, when maximizing a window. The size is now picked up by the correct output, but the maximized window position is still wrong. [Pekka Paalanen] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=82967 Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-10input: Schedule pointer sprite repaint when cursor is setJonas Ådahl2-2/+52
If a cursor was set with wl_pointer.set_cursor but not in combination with an action that has the side effect of damaging the region where the cursor is positioned, it would not be drawn. This patch explicitly schedules a repaint of the pointer sprite when it is set. clickdot is updated to illustrate the bug; when moving the pointer over clickdot, the pointer is hidden. When not having moved the pointer for 500 ms it is made visible using wl_pointer.set_pointer. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-09compositor: fix memory corruption when removing an outputGiulio Camuffo1-0/+6
The destructor set on the wl_output resources needs the weston_output to be allocated, because it removes the resource from its list. So unset the destructor on all the resources when destroying an output. Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-09main: don't leak option stringsRyo Munakata1-24/+18
[Pekka Paalanen: fix a long line] Signed-off-by: Ryo Munakata <ryomnktml@gmail.com> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-09compositor: extract choose_default_backend and create_listening_socketRyo Munakata1-25/+41
Extract these two new functions from main() to improve readability. Refactoring only, no functioncal changes. [Pekka Paalanen: commit message] Signed-off-by: Ryo Munakata <ryomnktml@gmail.com> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-09compositor: remove unused signalGiulio Camuffo1-1/+0
The move_signal in weston_output isn't used, and not even initialized, so anything trying to listen to it will crash on wl_signal_add(). Instead of it, the 'output_moved_signal' in weston_compositor is used, so remove it. Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-06Fix a copy-paste error in weston_surface_commit_stateJason Ekstrand1-1/+1
2014-09-05configure.ac: bump version to 1.5.92 for rc11.5.92Pekka Paalanen1-1/+1
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-05fix asprintf warningsPekka Paalanen3-6/+18
Fix recently introduced compiler warnings: desktop-shell/shell.c: In function 'shell_configuration': desktop-shell/shell.c:588:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] src/screenshooter.c: In function ‘screenshooter_binding’: src/screenshooter.c:291:10: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] src/text-backend.c: In function ‘text_backend_configuration’: src/text-backend.c:944:10: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-05xdg-shell: handle clients launched in fullscreenMarek Chalupa1-0/+33
When client is lauched in fullscreen, it is placed on the first output, because it is not mapped and shell_surface_set_output() therefore sets default output. Since we have no better way how to position newly created windows, (http://lists.freedesktop.org/archives/wayland-devel/2014-May/thread.html#14568) set the output to the one that has currently focus. Priority has the touch focus, then pointer and then keyboard focus. This fixes bug https://bugs.freedesktop.org/show_bug.cgi?id=69780 Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-05matrix-test: fix units in reportDerek Foreman1-2/+2
The matrix-test speed tests are calculated in ns but some printed the units as us Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-05touch-input: Don't dereference NULL pointer during full screen fadeDerek Foreman2-3/+13
If a full screen program is fading out and a touch start happens, it will result in a NULL pointer dereference when weston_touch_set_focus tries to derefernce view->surface->resource. Instead, this patch sets the focus to NULL, which should be the same as if the program was destroyed during the touch anyway. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=78706 Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-04clients: Maximize window when double click on title barXiong Zhang3-1/+60
Signed-off-by: Xiong Zhang <panda0626@gmail.com> Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-04xwm: Do not activate override redirect windowsBoyan Ding1-0/+3
We shouldn't do WM-y things on an O-R window, including setting input focus to it. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=81273 Signed-off-by: Boyan Ding <stu_dby@126.com> Tested-by: Ryo Munakata <ryomnktml@gmail.com> Acked-by: Christopher Michael <cp.michael@samsung.com>
2014-09-04desktop-shell: implement touch popup grabsJonny Lamb1-12/+143
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-04pixman-renderer: copy_to_hw_buffer: don't leak output_regionRyo Munakata1-0/+1
This was reported by Valgrind. Signed-off-by: Ryo Munakata <ryomnktml@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-03pixman-renderer: fail to zoom more gracefullyDerek Foreman1-2/+3
When zoom is activated in the pixman rendered the log is filled with warnings and all rendering stops. With this patch the warning is generated once and rendering continues without zooming. Closes bug 80258 Bug: https://bugs.freedesktop.org/show_bug.cgi?id=80258 Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-03xwm: Check whether the seat is NULL when needed in weston_wm_handle_buttonBoyan Ding1-2/+4
XCB and wayland input event handling exists together in xwm, which can cause problems. weston_wm_handle_button is called via XCB events, while it calls weston_wm_pick_seat_for_window, which uses info from compositor (pure wayland). It is also true in setting and removing flags of frames. Races can happen in between, when resize of moving flag of the frame is still set while the button has been released, the picked seat will be NULL in weston_wm_handle_button, causing crash. We can safely ignore moving or resizing if this happens. The same applies to c06a180d. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=82827 Signed-off-by: Boyan Ding <stu_dby@126.com> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-03compositor: add an option to set the default numlock valueGiulio Camuffo2-0/+19
Add a new "numlock-on" option in the [keyboard] section of weston.ini which, if set to true, is used to enable the numlock of the keyboards attached at startup. Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-03compositor: add a way to change the keyboard locksGiulio Camuffo2-0/+64
This adds a function weston_keyboard_set_locks() which can be used to change the state of the num lock and the caps locks, changing the leds too. Only the evdev and libinput backends supports this, since it doesn't make sense for embedded sessions. Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-09-01shell: quit weston, if weston-desktop-shell dies earlyPekka Paalanen2-1/+34
If weston-desktop-shell dies soon after launch, or maybe cannot be executed at all, let weston exit rather than letting the user stare at a black screen. But, do not exit weston, if weston-desktop-shell dies later, as the user may already have apps open, and those apps would likely still function correctly. This gives the user the opportunity to save his work and close the apps properly. This should make one class of "I see only black screen" failures obvious. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
2014-08-28pixman-renderer: free shadow buffer on renderer destructionArnaud Vrac1-0/+3
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-08-28desktop-shell: properly set background widget as opaqueArnaud Vrac1-9/+1
Toytoolkit resets the opaque region which was set manually using the wayland protocol directly, so use the widget API instead. Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-08-28simple-egl: fix opaque and 16 bits mode optionsArnaud Vrac1-0/+1
In those cases we were writing to the wrong EGL config attribute. Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-08-28multi-resource: remove an unnecessary call of wl_display_get_fd()Ryo Munakata1-2/+0
Signed-off-by: Ryo Munakata <ryomnktml@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2014-08-28simple-shm: remove an unnecessary call of wl_display_get_fd()Ryo Munakata1-2/+0
Reviewed-by: Nils Chr. Brause <nilschrbrause@gmail.com>
2014-08-28compositor: leave no zombie behindPekka Paalanen1-12/+14
When SIGCHLD fires, we may have more than one zombie to be collected. Run waitpid() in a loop until no more zombies are found, and clean them all up. It looks like the SIGCHLD signalfd does not trigger again for remaining zombies, so we need the loop. This works around a crash in text_backend_notified_destroy, which ends up using stale input_method.client if the sigchld handler is not called. The crash could be triggered by removing both weston-desktop-shell and weston-keyboard, so that both would try to respawn and give up, and then quitting Weston. Cc: rawoul@gmail.com Cc: Boyan Ding <stu_dby@126.com> Cc: Derek Foreman <derekf@osg.samsung.com> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>