aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-03-15backend/wayland: improve output number handlingBrian Ashworth
This improves the way the output numbers are handled for the wayland backend. Instead of using the number of active outputs plus one, the last used number is stored and new outputs will increment it. This fixes the situation where you start with one output, create a second, close the first, and create a third. Without this, both outputs will be `WL-2`, which causes an issue since the identifier will also be identical. With this, the last output is `WL-3` and the outputs can be distinguished.
2019-03-12meson: remove -Wredundant-declsemersion
This is causing issues with wayland-scanner generated files. The client and server headers are declaring the same structs. We include both in the Wayland backend. See https://gitlab.freedesktop.org/wayland/wayland/issues/82
2019-03-11Update version to 0.5.0Drew DeVault
2019-03-08wlr_output_layout_get_box: handle empty layoutBrian Ashworth
If there were no outputs in the output layout, wlr_output_layout_get_box would return the box: { .x = INT_MIN, .y = INT_MIN, .width = INT_MIN - INT_MAX, .height = INT_MIN - INT_MAX } which results in an integer underflow for both the width and height. This changes the logic to have the box be all zeroes, since an empty output layout does not have a width or height and the location of something without a size is irrelevant so this just uses the origin.
2019-03-06backend/session: Allow setting a custom tty via WLR_DIRECT_TTYNiklas Schulze
2019-03-06Merge pull request #1606 from emersion/xwayland-dev-nullScott Anderson
xwayland: set CLOEXEC on /dev/null FD
2019-03-06xwayland: set CLOEXEC on /dev/null FDemersion
This avoids leaking the FD to Xwayland and its children.
2019-03-05backend/drm: Don't fail on failing to find overlay formatScott Anderson
Some hardware exists which doesn't support XRGB/ARGB overlays, and we aren't even using overlay planes, so don't fail on trying to find a format.
2019-03-05Merge pull request #1604 from emersion/direct-session-cloexecScott Anderson
backend/session: open TTY with O_CLOEXEC for direct session
2019-03-05backend/session: open TTY with O_CLOEXEC for direct sessionemersion
2019-03-04seat: add debug logs when validating grab serialsemersion
Makes it easier to debug when something goes wrong, e.g. button_count stuck to 2 because the compositor ate a button release event.
2019-03-04xwayland: don't set DISPLAYemersion
Let the compositor set it. This allows for multiple Xwayland instances to run at the same time. Fixes https://github.com/swaywm/wlroots/issues/1442
2019-03-04xwm: fix typos in WM_NORMAL_HINTS handlingIlia Bozhinov
2019-03-03xwm: use min size as base size hint if it is missing and vice versaIlia Bozhinov
This is what ICCCM states that a WM should do.
2019-03-02rootston: fix input events for rotated viewsemersion
2019-03-02rootston: split rendering code into render.cemersion
2019-03-02rootston: fix Xwayland children rendering when fullscreenemersion
2019-03-02rootston: fix rotated views renderingemersion
2019-03-02rootston: refactor renderingemersion
This implements rootston surface iterators to ease rendering, sending frame/presentation events and accumulating damage.
2019-03-02backend/session: add noop sessionemersion
This is the first step towards being able to run via DRM leasing and on render nodes. Test with: export WLR_BACKENDS=drm export WLR_SESSION=noop export WLR_DRM_DEVICES=/dev/dri/renderD128
2019-03-02tinywl: send pointer frame eventsemersion
Fixes https://github.com/swaywm/wlroots/issues/1544
2019-03-01seat: fix remaining wlr_button_state enum renameIan Fan
2019-03-01seat: only store serial if pressing a buttonemersion
The grab serial can be used to start a pointer grab. A button pressed event should be used for this purpose. Thus, we should only save the grab serial if it's the first button pressed event we send. This commit makes it so the serial is not saved if a button is released while another button is still pressed.
2019-03-01seat: use wlr_button_state enum instead of uint32_temersion
2019-03-01meson: enable more compiler warningsemersion
2019-02-28seat: guard against button count corruptionemersion
This is still a compositor bug, and bad events will be sent to clients. We'll need to track each button separately to handle this in wlroots.
2019-02-28Remove glEGLImageTargetTexture2DOESGuido Günther
It's declared via render/glapi.txt.
2019-02-28wlr_xdg_shell: Remove redundant declaration in the same fileGuido Günther
2019-02-28rootston/view: Remove redundant declaration in the same fileGuido Günther
2019-02-28Unbreak build with '-Wstrict-prototypes'Guido Günther
2019-02-27Update version to 0.4.1Drew DeVault
2019-02-26rootston: Make add_{switch,binding}_config staticGuido Günther
2019-02-26clang compile fix #1572athrungithub
clang consider error no enum handled, in BSD and Linux
2019-02-25Bump version to 0.4emersion
2019-02-24data-device: check if there's a source before sending dnd_finishemersion
This could cause a segfault in data_offer_destroy if the offer has version < 3.
2019-02-24Add xcb-errors to FreeBSD buildJan Beich
Test f8428d1063c6 at least somewhere to avoid build regressions.
2019-02-24backend/drm: Unset cursor on cleanupScott Anderson
This will prevent the cursor from persisting on the Linux framebuffer terminal on exit.
2019-02-23Merge pull request #1517 from emersion/refactor-dndDrew DeVault
Refactor drag-and-drop
2019-02-23Merge pull request #1568 from emersion/rootston-refactorDrew DeVault
Refactor rootston views
2019-02-23rootston: make roots_view embedded and remove unionsemersion
2019-02-23rootston: add a view child interfaceemersion
2019-02-23rootston: move part of desktop.c to view.c, use an interface for viewsemersion
2019-02-22rootston: surface_at: check for fullscreen surfaces in between TOP and ↵Sebastian Krzyszkowiak
OVERLAY layers Input order didn't match rendering order, causing pointer events to go into surfaces that were completely obscured by others (like a LAYER_TOP panel behind a fullscreen window).
2019-02-22rootston: don't try to maximize fullscreen surfacesSebastian Krzyszkowiak
It doesn't make much sense and actually breaks stuff when using layer-shell (fullscreen window gets resized, but it's still fullscreen, leading to black bars where the shell layers are behind).
2019-02-21Merge pull request #1565 from Emantor/fix/realloc_allocationScott Anderson
backend/drm: fix memory leak in realloc crtcs
2019-02-21backend/drm: fix memory leak in realloc crtcsRouven Czerwinski
If *changed_outputs is not supplied by the calling function, track the local allocation with a bool variable and free the allocation at the end of the function.
2019-02-20data-device: unbreak wl_data_source.cancel during drag-and-dropemersion
2019-02-20data-offer: send WL_DATA_OFFER_ERROR_INVALID_FINISHemersion
2019-02-20rootston: cancel drag on invalid serialemersion
2019-02-20data-device: fix drag cleanup if not startedemersion