aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-02-08Merge pull request #609 from VincentVanlaer/cancel-grabTony Crisci
Cancel rootson move/resize/rotate on escape
2018-02-08Rename roots_seat_cancel_transformVincent Vanlaer
2018-02-08Merge branch 'master' into cancel-grabVincent Vanlaer
2018-02-07Merge pull request #611 from DonOregano/fix-resize-freezeDrew DeVault
Make pointer button release outside window still count down the button_count
2018-02-07Merge pull request #612 from VincentVanlaer/fix-move-resizeemersion
Fix jitter when quickly resizing windows
2018-02-07Fix style errorVincent Vanlaer
2018-02-07Fix jitter when quickly resizing windowsVincent Vanlaer
Surfaces and views get resized only on commit, therefore we may only change the position of a window if there are no pending commits.
2018-02-07Make pointer button release outside window still count down the button_count.Lars Hagström
When double-clicking a maximized window title, so that the windows size is restored and the mouse pointer ends up _outside_ the window it becomes impossible to move windows. The reason is that the button_count variable is not counted down if the mouse button is released outside the window, so the button_count remains incremented even after the button is released. This patch adds a call to wlr_seat_pointer_notify_button if the mouse button is released outside the window. (I am a complete noob to wlroots, so be kind...)
2018-02-06Merge pull request #610 from Ongy/drm_reuseDrew DeVault
prevents reuse of outdated wlr_output state
2018-02-06Merge roots_seat_cancel_* into one functionVincent Vanlaer
2018-02-06prevents reuse of outdated wlr_output stateMarkus Ongyerth
On the drm output the wlr_drm_connector structs are reused. This struct contains the wlr_output struct, which is reused as well. The old code kept modes/edid and output state persistent over hotplug. This nulls the relevant strings, reads newer edid data and removes old modes on unplug.
2018-02-06Refactor roots_cursor_press_buttonVincent Vanlaer
Removed the button_count check when resizing/moving/rotating ends, since all buttons presses are now properly tracked.
2018-02-06Update seat pointer on meta move/resize/rotateVincent Vanlaer
This will send the button pressed event to the client. This shouldn't be a problem since sebsequent pointer movements are not sent to the client. Thus the client will not for example start selecting text when it is being resized using the compositor keybindigns.
2018-02-06Cancel rootston move/resize/rotate on escape pressVincent Vanlaer
2018-02-06Always notify seat on button pressVincent Vanlaer
When the cursor is not over a view, wlr_seat_pointer_notify_button is not called. However, this function does the bookkeeping of the pointer state with regards to the number of pressed buttons. Because this function also sends updates to the focused view, it has been moved down, after the focus has been updated.
2018-02-04Merge pull request #607 from VincentVanlaer/cursor-bugDrew DeVault
Prevent cursor from getting stuck at infinity
2018-02-04Prevent cursor from getting stuck at infinityVincent Vanlaer
2018-02-04Merge pull request #606 from FabianGeiselhart/fix-typoemersion
Fix typo in rootston config
2018-02-04Comments should talk about colons not semicolonsFabian Geiselhart
2018-02-02Merge pull request #601 from emersion/output-modeset-enabledDrew DeVault
backend/drm: update output enabled property on modeset
2018-02-02backend/drm: update output enabled property on modesetemersion
2018-02-02Fix typo in xcursor.hDrew DeVault
2018-02-01Improve xcursor docsDrew DeVault
2018-02-01Merge pull request #598 from Ongy/screenshot_transformemersion
Screenshot transform
2018-02-01fixes the off by one errors in examples/screenshotMarkus Ongyerth
The inverse loop iterations for the transformed outputs had an off by one error, iterating 1 based, not 0 based. This commit fixes that.
2018-02-01Merge pull request #599 from emersion/output-cursor-destroy-signalemersion
output: add destroy signal for wlr_output_cursor
2018-02-01output: add destroy signal for wlr_output_cursoremersion
2018-01-31handle the other transformations for screenshotsMarkus Ongyerth
This handles all current transformations for outputs properly. This ensures an output is drawn in readable orientation/flipping no matter the actual transformations applied to it.
2018-01-31fixes 90 degree rotation screenshotsMarkus Ongyerth
This fixes the screenshot example application when an output is rotated by 90 degrees. Other tranformations are not taken into account yet.
2018-01-30Merge pull request #597 from agx/typosemersion
Fix some typos
2018-01-30Fix some typosGuido Günther
Prefer initialize over initialise since used more often in the sources.
2018-01-30Merge pull request #594 from Ongy/drm-surface-buffersemersion
relases gbm buffers on init
2018-01-29Merge pull request #580 from emersion/screenshooter-renderer-backportTony Crisci
Backport screenshooter fixes from the renderer redesign v1
2018-01-29Clean up the gbm/egl as wellMarkus Ongyerth
2018-01-29relases gbm buffers on initMarkus Ongyerth
The wlr_drm_surface_init function is called (upon others) when the drm mode is changed. When the surface was used previously this replaced the gbm_surface, but did not replace the gbm buffers (front/back). With this, wlr_drm_surface_get_from never set up the new buffers with the new glViewport because surf->front existed. This frees the buffers to get new buffers on the new surface with the new viewport.
2018-01-28Merge pull request #591 from emersion/fix-data-source-notify-finishDrew DeVault
Fix assertion failed in data_source_notify_finish
2018-01-28Fix assertion failed in data_source_notify_finishemersion
2018-01-28Merge pull request #590 from pks-t/pks/rootston-wo-xwaylandDrew DeVault
Fix building rootston without XWayland
2018-01-28meson: add systemd/elogind backends only if enabledPatrick Steinhardt
Right now, we are adding systemd and elogind backends to the build system as soon as their libraries are found on the build system. Instead, we should only add them if the libraries have been found _and_ the user has actually requested them to be included.
2018-01-28travis: add job building wlroots without various optionsPatrick Steinhardt
Recently, the support for building rootston without XWayland was broken. While the breakage was easily fixable, the more important problem is that actually nobody seems to ever compile wlroots without XWayland, causing silent breakage. This problem can easily be handled by the CI system: in addition to the existing job which enables XWayland, add a second job which compiles wlroots without XWayland. This will catch breakage at a much earlier stage. Catching broken builds without XWayland support obviously only covers one part of a greater issue, as all the other options may cause our builds to break, too. While we cannot test each combination, we can at least make sure to have one build with all options enabled and one with all options disabled.
2018-01-28rootston: move together XWayland setup codePatrick Steinhardt
The XWayland code for creating the cursor as well as creating the surface itself are currently split up into two ifdef'ed sections in `desktop_create()`. Move together these two sections in order to avoid having multiple ifdefs as well as making it clearer that they do in fact serve the same purpose of setting up the XWayland environment.
2018-01-28rootston: fix compilation without XWayland supportPatrick Steinhardt
In case wlroots is not being compiled with XWayland support, we will not have an xwayland surface in our roots view. While we make sure to pay attention to that in some places, we are not being consistent and try to access the xwayland surface in other places. Obviously, this leads to a compiler error due to the field not being present. Fix the issue by sprinkling in a few additional ifdefs where required.
2018-01-27Merge pull request #588 from agx/armDrew DeVault
Fix warnings on arm-linux
2018-01-27drm: Use ptrdiff_t instead of intmax_t in format stringGuido Günther
since we're looking at pointer differences. Otherwise the build fails on arm like In file included from ../backend/drm/drm.c:19:0: ../include/wlr/util/log.h:34:17: error: format '%jd' expects argument of type 'intmax_t', but argument 7 has type 'int' [-Werror=format=] _wlr_log(verb, "[%s:%d] " fmt, _strip_path(__FILE__), __LINE__, ##__VA_ARGS__) ^ ../backend/drm/drm.c:462:2: note: in expansion of macro 'wlr_log' wlr_log(L_DEBUG, "%s: crtc=%ju ovr=%jd pri=%jd cur=%jd", conn->output.name, ^~~~~~~ ../backend/drm/drm.c:462:39: note: format string is defined here wlr_log(L_DEBUG, "%s: crtc=%ju ovr=%jd pri=%jd cur=%jd", conn->output.name, ~~^ %d
2018-01-27wlr_keyboard: use correct printf format string for keymap_sizeGuido Günther
keymap_size is a size_t. Otherwise the build fails on arm like ../types/wlr_keyboard.c: In function 'wlr_keyboard_set_keymap': ../include/wlr/util/log.h:34:17: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}' [-Werror=format=] _wlr_log(verb, "[%s:%d] " fmt, _strip_path(__FILE__), __LINE__, ##__VA_ARGS__) ^ ../types/wlr_keyboard.c:218:3: note: in expansion of macro 'wlr_log' wlr_log(L_ERROR, "creating a keymap file for %lu bytes failed", kb->keymap_size); ^~~~~~~ ../types/wlr_keyboard.c:218:50: note: format string is defined here wlr_log(L_ERROR, "creating a keymap file for %lu bytes failed", kb->keymap_size); ~~^ %u
2018-01-26render/gles2: use format bpp when reading pixelsemersion
2018-01-26Merge pull request #585 from agx/mesonemersion
meson: add tags and ctags targets
2018-01-26meson: add ctags and etags targetsGuido Günther
to create tag files. Idea taken from systemd. Signed-off-by: Guido Günther <agx@sigxcpu.org>
2018-01-26Remove vim stuff from .gitignoreDrew DeVault
If this affects you put this in your vimrc: set backupdir=~/.cache set directory=~/.cache
2018-01-24Merge pull request #584 from VincentVanlaer/drm-segfaultDrew DeVault
Clean up session signal handler on drm init fail