emersion
408eca7dfa
meson: remove -Wredundant-decls
...
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
6 years ago
Drew DeVault
c9137cba69
Update version to 0.5.0
6 years ago
Brian Ashworth
aa5c369910
wlr_output_layout_get_box: handle empty layout
...
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.
6 years ago
Niklas Schulze
2baad6eba6
backend/session: Allow setting a custom tty via WLR_DIRECT_TTY
6 years ago
Scott Anderson
a3c31bb875
Merge pull request #1606 from emersion/xwayland-dev-null
...
xwayland: set CLOEXEC on /dev/null FD
6 years ago
emersion
8363ca8c9f
xwayland: set CLOEXEC on /dev/null FD
...
This avoids leaking the FD to Xwayland and its children.
6 years ago
Scott Anderson
6a8f17b5f6
backend/drm: Don't fail on failing to find overlay format
...
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.
6 years ago
Scott Anderson
680c4c573c
Merge pull request #1604 from emersion/direct-session-cloexec
...
backend/session: open TTY with O_CLOEXEC for direct session
6 years ago
emersion
d02548d87a
backend/session: open TTY with O_CLOEXEC for direct session
6 years ago
emersion
30d3426164
seat: add debug logs when validating grab serials
...
Makes it easier to debug when something goes wrong, e.g. button_count stuck
to 2 because the compositor ate a button release event.
6 years ago
emersion
9601019192
xwayland: don't set DISPLAY
...
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
6 years ago
Ilia Bozhinov
fb106eb979
xwm: fix typos in WM_NORMAL_HINTS handling
6 years ago
Ilia Bozhinov
c9b9e48525
xwm: use min size as base size hint if it is missing and vice versa
...
This is what ICCCM states that a WM should do.
6 years ago
emersion
6a60dafe59
rootston: fix input events for rotated views
6 years ago
emersion
c2178d51a8
rootston: split rendering code into render.c
6 years ago
emersion
242e9e3bf0
rootston: fix Xwayland children rendering when fullscreen
6 years ago
emersion
bfaf06f04b
rootston: fix rotated views rendering
6 years ago
emersion
62fd03a7be
rootston: refactor rendering
...
This implements rootston surface iterators to ease rendering, sending
frame/presentation events and accumulating damage.
6 years ago
emersion
8efeca528f
backend/session: add noop session
...
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
6 years ago
emersion
755a1c9138
tinywl: send pointer frame events
...
Fixes https://github.com/swaywm/wlroots/issues/1544
6 years ago
Ian Fan
2e1dd4ae36
seat: fix remaining wlr_button_state enum rename
6 years ago
emersion
e8f012c993
seat: only store serial if pressing a button
...
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.
6 years ago
emersion
2fde5c95d8
seat: use wlr_button_state enum instead of uint32_t
6 years ago
emersion
5445d8aad0
meson: enable more compiler warnings
6 years ago
emersion
4135fafecd
seat: guard against button count corruption
...
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.
6 years ago
Guido Günther
f8fcd7f06a
Remove glEGLImageTargetTexture2DOES
...
It's declared via render/glapi.txt.
6 years ago
Guido Günther
cf9607f282
wlr_xdg_shell: Remove redundant declaration in the same file
6 years ago
Guido Günther
7da9af31e8
rootston/view: Remove redundant declaration in the same file
6 years ago
Guido Günther
d3b48dfcae
Unbreak build with '-Wstrict-prototypes'
6 years ago
Drew DeVault
b46e097fe2
Update version to 0.4.1
6 years ago
Guido Günther
65f1ec1d5e
rootston: Make add_{switch,binding}_config static
6 years ago
athrungithub
2000d52405
clang compile fix #1572
...
clang consider error no enum handled,
in BSD and Linux
6 years ago
emersion
0b33643175
Bump version to 0.4
6 years ago
emersion
d425206719
data-device: check if there's a source before sending dnd_finish
...
This could cause a segfault in data_offer_destroy if the offer has version < 3.
6 years ago
Jan Beich
421283935b
Add xcb-errors to FreeBSD build
...
Test f8428d1063
at least somewhere to avoid build regressions.
6 years ago
Scott Anderson
d945c97926
backend/drm: Unset cursor on cleanup
...
This will prevent the cursor from persisting on the Linux framebuffer
terminal on exit.
6 years ago
Drew DeVault
e77e53dae5
Merge pull request #1517 from emersion/refactor-dnd
...
Refactor drag-and-drop
6 years ago
Drew DeVault
00b1b40b36
Merge pull request #1568 from emersion/rootston-refactor
...
Refactor rootston views
6 years ago
emersion
9adcbabea4
rootston: make roots_view embedded and remove unions
6 years ago
emersion
9f11bf571e
rootston: add a view child interface
6 years ago
emersion
e86c7a3dd6
rootston: move part of desktop.c to view.c, use an interface for views
6 years ago
Sebastian Krzyszkowiak
4f66565606
rootston: surface_at: check for fullscreen surfaces in between TOP and 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).
6 years ago
Sebastian Krzyszkowiak
de56ea6b1e
rootston: don't try to maximize fullscreen surfaces
...
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).
6 years ago
Scott Anderson
132290aeb4
Merge pull request #1565 from Emantor/fix/realloc_allocation
...
backend/drm: fix memory leak in realloc crtcs
6 years ago
Rouven Czerwinski
e1834ace28
backend/drm: fix memory leak in realloc crtcs
...
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.
6 years ago
emersion
d6de640440
data-device: unbreak wl_data_source.cancel during drag-and-drop
6 years ago
emersion
7d367a9e21
data-offer: send WL_DATA_OFFER_ERROR_INVALID_FINISH
6 years ago
emersion
ae2aeb65cc
rootston: cancel drag on invalid serial
6 years ago
emersion
44ec3afb27
data-device: fix drag cleanup if not started
6 years ago
emersion
6291e84532
data-device: refactor wlr_drag
6 years ago