emersion
5fe50b9a28
output: make wl_output resources inert
7 years ago
emersion
33db4263a0
surface: replace wlr_surface_set_role_committed with wlr_surface_role
7 years ago
Drew DeVault
be54278207
Merge pull request #1095 from agx/output-add-mode
...
Allow to add additional modes to outputs
7 years ago
Guido Günther
60a83e99f4
rootston: use wl_list_empty instead of wl_list_length > 0
7 years ago
Guido Günther
709d7dd722
rootston: Handle modeline parameter
...
This allows to pass custom modes.
7 years ago
Guido Günther
8d72090afe
drm: Allow to add additional modes
...
This allows to add additional modes to the list of available video modes
using VESA Coordinated Video Timing information.
Closes #1080
7 years ago
Drew DeVault
7c6588d7ae
Merge pull request #1076 from emersion/redesign-surface-state
...
surface: redesign state
7 years ago
emersion
515d682312
surface: fix damage when moving subsurfaces with scale > 1
7 years ago
emersion
e665a74122
surface: don't clip input and opaque regions
...
These can be set to e.g. regions larger than the surface. If the
surface resizes itself, it doesn't need to set again these regions.
7 years ago
emersion
226306ed45
surface: rename wlr_surface_state.buffer to buffer_resource
7 years ago
emersion
68c133da2f
surface: fix crash on NULL commit
7 years ago
emersion
6f0eb11024
surface: fix previous state eating current state resources
7 years ago
emersion
f440708274
output: fix cursor attach coords handling
7 years ago
emersion
012e38fbe5
surface: add wlr_surface.previous
7 years ago
emersion
78555abba3
surface: move position and scale out of wlr_surface_state
7 years ago
emersion
233bfe2f4f
surface: do not monkey-patch state damage
7 years ago
emersion
adf0423f7c
surface: better buffer position handling
7 years ago
emersion
e6399c61b7
surface: fix WLR_SURFACE_STATE_BUFFER_DAMAGE value
7 years ago
emersion
3c0d672ebd
surface: make pending and current embedded structs
7 years ago
emersion
64836ddfe7
surface: remove wlr_surface_state.subsurface_position
7 years ago
emersion
3ee86b6105
surface: rename invalid state
7 years ago
Drew DeVault
5d1c5ff80b
Merge pull request #1112 from emersion/fix-debug-damage-tracking
...
Fix damage tracking debug mode
7 years ago
emersion
8c2b4244a1
Fix damage tracking debug mode
7 years ago
Drew DeVault
b0f7072737
Merge pull request #1111 from martinetd/wlr-seat-destroy
...
wlr_seat destroy: fix use-after-free when destroying clients
7 years ago
Dominique Martinet
48e8da851d
wlr_seat destroy: fix use-after-free when destroying clients
...
wl_resource_for_each_safe isn't safe to use here because it accesses
the list's head memory one last time at the end of the loop. Work
around this by breaking out early.
==19880==ERROR: AddressSanitizer: heap-use-after-free on address 0x60d0000e6368 at pc 0x7fab68619de2 bp 0x7ffd5c91cee0 sp 0x7ffd5c91ced0
READ of size 8 at 0x60d0000e6368 thread T0
#0 0x7fab68619de1 in wlr_seat_destroy ../types/seat/wlr_seat.c:179
#1 0x7fab68619fb9 in handle_display_destroy ../types/seat/wlr_seat.c:196
#2 0x7fab688e4f8f in wl_priv_signal_emit src/wayland-server.c:2024
#3 0x7fab688e56ca in wl_display_destroy src/wayland-server.c:1092
#4 0x40c11e in server_fini ../sway/server.c:138
#5 0x40b1a8 in main ../sway/main.c:438
#6 0x7fab67b5e18a in __libc_start_main ../csu/libc-start.c:308
#7 0x409359 in _start (/opt/wayland/bin/sway+0x409359)
0x60d0000e6368 is located 24 bytes inside of 144-byte region [0x60d0000e6350,0x60d0000e63e0)
freed by thread T0 here:
#0 0x7fab6a7d6880 in __interceptor_free (/lib64/libasan.so.5+0xee880)
#1 0x7fab68619805 in seat_client_handle_resource_destroy ../types/seat/wlr_seat.c:97
#2 0x7fab688e5025 in destroy_resource src/wayland-server.c:688
previously allocated by thread T0 here:
#0 0x7fab6a7d6e50 in calloc (/lib64/libasan.so.5+0xeee50)
#1 0x7fab686198df in seat_handle_bind ../types/seat/wlr_seat.c:127
#2 0x7fab6530503d in ffi_call_unix64 (/lib64/libffi.so.6+0x603d)
7 years ago
Drew DeVault
12dd9544f9
Merge pull request #1110 from apreiml/fix-focus-stack-change
...
fix: add stack update on focus change
7 years ago
Armin Preiml
26b2012b5e
fix style issue
7 years ago
Armin Preiml
e6d613ca2e
fix: add stack update on focus change
...
Enable the stack update again for focus changes on non-focusable views.
7 years ago
emersion
742c66d93f
Merge pull request #1107 from ammen99/master
...
properly check if the point is inside the surface in wlr_surface_pointer_accepts_input
7 years ago
Ilia Bozhinov
00ccf5c3ae
properly check if the point is inside the surface in wlr_surface_point_accepts_input
7 years ago
Drew DeVault
27cab67b96
Merge pull request #1105 from RyanDwyer/xdg-surface-for-each-popup
...
Introduce wlr_xdg_surface_for_each_popup
7 years ago
Ryan Dwyer
86f401e827
Introduce wlr_xdg_surface_for_each_popup
...
It is common to want to iterate an xdg-surface's popups separately from
the toplevel and subsurfaces. For example, popups are typically rendered
on top of most other surfaces.
wlr_xdg_surface_for_each_surface continues to iterate both surfaces and
popups to maintain backwards compatibility.
7 years ago
emersion
55dba13c6e
Merge pull request #1106 from martinetd/seat-destroy-uaf
...
wlr_seat destroy: fix use-after-free after primary selection source cancel
7 years ago
Dominique Martinet
9ddc2f39d0
wlr_seat destroy: fix use-after-free after primary selection source cancel
...
the primary_selection_source_destroy list points to memory freed by
that cancel callback, so remove from list before freeing
7 years ago
Drew DeVault
07209d062c
Merge pull request #1104 from VincentVanlaer/logind-fd-leak
...
Close fd's obtained from logind
7 years ago
Vincent Vanlaer
ece58514b4
Close fd's obtained from logind
7 years ago
Drew DeVault
015ebc5750
Merge pull request #1069 from emersion/screencopy
...
Add wlr-screencopy-unstable-v1 support
7 years ago
emersion
cc9b198f9e
render/gles2: ditch extra parens
7 years ago
emersion
a7a96d7644
examples/screencopy: use libpng
7 years ago
emersion
dbb01cbcd0
screencopy: listen to buffer destroy
7 years ago
emersion
9aaa9ba477
screencopy: make frame resource inert after copy
7 years ago
emersion
c421700f3d
screncopy: update protocol
7 years ago
emersion
bf7560b7cd
screencopy: add capture_output_region support
7 years ago
emersion
2b9cbaddf3
screencopy: add support for frame flags
7 years ago
emersion
bd8be19b79
screencopy: add presentation timestamp
7 years ago
emersion
73755ad348
screencopy-v1: add basic implementation
7 years ago
Drew DeVault
02dfa9101e
Merge pull request #1102 from martinetd/wlr-subsurface-from-wlr-surface
...
s/wlr_subsurface_from_surface/wlr_subsurface_from_wlr_surface/
7 years ago
Dominique Martinet
c263f7ca29
s/wlr_subsurface_from_surface/wlr_subsurface_from_wlr_surface/
...
This was the only x_from_wlr_surface function that lacked the wlr_ prefix,
let's have an API as uniform as possible.
7 years ago
emersion
167105e606
Merge pull request #1101 from martinetd/static-analysis
...
Static analysis fixes
7 years ago
Dominique Martinet
0c2a64df18
headless add_input_device: fix leak on error
...
Found through static analysis
7 years ago