6a15167754
add a blank line to improve readability
2023-12-07 22:15:42 -06:00
e5e2d1c28f
use (struct wlr_box){0} to empty the Monitor areas
2023-12-07 22:04:24 -06:00
bdbfb45d66
copy layout symbol when matching a MonitorRule
2023-12-07 21:51:24 -06:00
50ea84c5f6
remove extra blank line
2023-12-07 21:49:26 -06:00
472a31b5a4
LayerSurface::link -> LayerSurface.link
2023-12-07 21:48:56 -06:00
a760757b82
set the correct border color when mapping a client
2023-12-07 21:44:53 -06:00
80c9ad12ba
reduce calls to client_get_geometry
2023-12-07 21:43:48 -06:00
393078d80c
store the layersurface pointer in l->popups->node.data as well
2023-12-07 14:19:09 -06:00
28ec843aee
make sure popups of a layer surface are in the correct layer
...
previously it worked because we checked in every commit the layer
in a353eee2ca and
b100b446b8
we changed the way it's handled and now if the layer surface does not change
the layer we don't it either. meaning that if it was created in the bottom
layer and did not change the layer the popups would show behind xdg clients
2023-12-07 14:19:02 -06:00
2b3504e439
sort #includes
2023-12-01 21:35:50 -06:00
5f7d396996
don't return early if the first output commit fails
2023-11-30 22:39:03 -06:00
901d2e2d9d
check failure of wlr_output_init_render
2023-11-30 22:38:52 -06:00
00e867d536
use detached output state in createmon()
...
see previous commit for motivation
2023-11-30 22:38:39 -06:00
2e29189b92
use a detached output state in outputmgrapplyortest()
...
wlr_output.pending might be removed in wlroots 0.18
2023-11-30 22:38:11 -06:00
2e4fdc1664
use l instead of layersurface
...
`layer_surface` instead of `wlr_layer_surface`
and `scene_layer` whenever a wlr_scene_tree is related to layer surfaces
2023-11-25 19:18:19 -06:00
b100b446b8
return early if a layersurface didn't commit something
2023-11-25 19:17:32 -06:00
9cb1ece6cc
do not check if a layer surface has monitor on commit
...
We do not allow creating them w/o monitor and they are destroyed when
destroying their monitor
2023-11-25 19:17:32 -06:00
01a237bd5c
send wl_surface.enter before initial commit
...
It's not necessary but it'll help clients to render a perfect first frame
2023-11-25 19:17:32 -06:00
a5e068b20a
destroy the layer-suface's scene tree for popups
2023-11-25 19:16:33 -06:00
39f4ee564b
use wlr_box_equal() instead of memcmp
2023-11-25 19:08:56 -06:00
a353eee2ca
simplify settings popups scene tree parent
2023-11-25 19:06:17 -06:00
66ec028b00
simplify check for wlr_layer_surface.output
2023-11-25 19:05:27 -06:00
1f10e69b4c
use sizeof(*pointer) instead of sizeof(struct)
2023-11-25 19:04:57 -06:00
2783e82bf8
make sure to unlink Monitor.request_state listener
2023-11-25 18:53:18 -06:00
7ac76219df
Merge branch 'wlroots-next'
2023-11-25 00:04:19 -06:00
6838f909bd
try to apply gamma LUT in updatemons
...
this in the case the output was re-enabled
2023-11-21 20:41:36 -06:00
d2dd2f4986
ignore wl_surface.commit for xwayland clients
...
This is no longer needed
2023-11-21 20:16:26 -06:00
a0e79d8145
Do not send repeated xdg_toplevel.configure_bounds
...
Fixes: 32e66f4582
2023-11-21 20:15:46 -06:00
32e66f4582
resize clients on commit
...
Fixes: https://github.com/djpohly/dwl/issues/515
This reverts commit 4567979b16 .
2023-11-21 20:15:00 -06:00
b4da97446a
createkeyboard: do not segfault if xkb_keymap_new_from_names returns NULL
...
Passing NULL to wlr_keyboard_set_keymap results in a segfault.
Example:
Thread 1 "dwl" received signal SIGSEGV, Segmentation fault.
0x00007ffff7e49b64 in xkb_keymap_ref () from /usr/lib/libxkbcommon.so.0
(gdb) bt
#0 0x00007ffff7e49b64 in xkb_keymap_ref () at /usr/lib/libxkbcommon.so.0
#1 0x00007ffff7f06389 in wlr_keyboard_set_keymap () at /usr/lib/libwlroots.so.11
#2 0x000055555555bc54 in createkeyboard ()
#3 0x000055555555c283 in inputdevice ()
#4 0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0
#5 0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0
#6 0x00007ffff7edb52c in () at /usr/lib/libwlroots.so.11
#7 0x00007ffff7ee44b6 in () at /usr/lib/libwlroots.so.11
#8 0x000055555555fe66 in main ()
2023-11-19 01:14:35 -06:00
2751a6195d
do not try to enable adaptive sync
2023-11-18 11:20:56 -06:00
fcf324be6c
fix the position of the cursor image after turning all the monitors on
2023-11-17 19:03:23 -06:00
b8e933b9a9
remove unused #include
2023-11-17 11:03:33 -06:00
1044a21555
do not check if session is non-NULL
...
wlr_session_change_vt() is a no-op if session == NULL
2023-11-17 11:03:33 -06:00
6bcd5d8d87
do not explicitly destroy some wlroots interfaces
...
they are destroyed when the wayland display is destroyed
2023-11-17 11:03:32 -06:00
e95f14541a
fix docs
...
copied from tinywl
2023-11-17 11:03:32 -06:00
bca1b779aa
fix destroynotify() docs
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4421
2023-11-17 11:03:32 -06:00
4f4c540bb9
prevent a use-after-free at exit
2023-11-17 11:03:30 -06:00
8e3f5364d3
do not compute layout box twice
2023-11-17 11:03:30 -06:00
2212363225
make sure fullscreen clients have the right size
2023-11-17 11:03:30 -06:00
6f8a3f9374
fix screen artifacts when setting gamma
...
the artifacts were caused because we tried to set the gamma right after
receiving the event, this resulted in two pending page-flips, which
not always play well together.
This also seems to fix a screen freeze when turning on a monitor that has
gamma.
Additionally the current method won't work once [0] is merged
[0]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4423
2023-11-17 11:01:30 -06:00
e1f3983bf8
use wlr_scene_subsurface_tree_set_clip
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4131
Closes: https://github.com/djpohly/dwl/issues/411
2023-11-14 19:44:43 -06:00
31bf1cbaf6
Revert "respect size hints"
...
This reverts commit 72e0a560d9 .
2023-11-14 19:44:28 -06:00
a4a83e95e6
use newer cursor naming spec
...
References: https://www.freedesktop.org/wiki/Specifications/cursor-spec/
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4416
2023-11-01 12:28:19 -06:00
e45ded7eea
ignore maximize events for clients using xdg-shell v5 and newer
2023-11-01 12:16:02 -06:00
892a4d3ec7
Merge remote-tracking branch 'upstream/main' into wlroots-next
2023-10-13 17:10:25 -06:00
8c79f8dc15
check client is mapped before setting border color
...
For some reason brave configured for as a wayland client triggers this code on startup and segfaults.
Checking if the client is mapped fixes this, like with the previous fix for urgent border colour.
References: 887fde65a3
Fixes: 72a7d78a1a
2023-10-10 10:16:11 -06:00
8781f4dbf5
Merge remote-tracking branch 'upstream/main' into wlroots-next
2023-10-09 22:37:36 -06:00
df131cdb78
use <xcb/xcb.h> instead of <X11/Xlib.h>
2023-10-09 22:33:37 -06:00
887fde65a3
only set border color for urgent *and* mapped X11 clients
...
this fixes a segfault when the client emits .set_hints but it's not mapped
Fixes: 72a7d78a1a
2023-10-09 22:32:15 -06:00