e0f531d508
fix: crash when open some x11 app
2025-03-12 16:27:47 +08:00
aa69ed81b5
allocate with LISTEN_STATIC
...
Fixes: https://codeberg.org/dwl/dwl/issues/723
Supersedes: https://codeberg.org/dwl/dwl/pulls/724
2025-02-01 22:34:58 -06:00
d1c2f43498
rename some listeners
...
To keep consistency with the rest of listeners
2025-01-19 17:27:16 -06:00
da13a95683
destroy keyboard group after unlinking listeners
...
Last commit addressing the issue mentioned in
0925fe956a
2025-01-19 17:26:28 -06:00
9a9f67db1c
unlink global listeners on destroy
...
Continuation of 0925fe956a
2025-01-19 17:26:02 -06:00
4e7e2999d4
Partially revert "Line saver: LISTEN_STATIC macro"
...
This reverts commit 33bcd2e4ca .
We keep LISTEN_STATIC for three instances where we use it. We use
simple listeners for the rest of signals.
This is the continuation of 0925fe956a
2025-01-19 17:24:54 -06:00
0925fe956a
unlink some destroy listeners
...
Recently wlroots was updated to assert that signals do not have listeners
attached on destroy.
This is just a preliminar work to fix dwl. At the moment dwl will trigger the
assertions at exit.
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4918
2025-01-17 21:03:28 -06:00
26504f9a6f
do not call waitid(2) in the signal handler when Xwayland is enabled
...
waitid(2) is not a async-signal-safe function acording to signal-safety(7)
We can stop doing this because wlroots!4926 allows compositors to install
signal handlers for SIGCHLD.
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4926
2025-01-14 12:23:55 -06:00
6f34a6d3a6
use wlr_xwayland_surface_has_window_type() (wlroots!4553)
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4553
2025-01-14 12:23:55 -06:00
30f5063474
manually call updatemons in powermgrsetmode()
...
Fixes: https://codeberg.org/dwl/dwl/issues/713
2024-12-10 22:49:09 -06:00
84245764e2
specify version for presentation-time (wlroots!4858)
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4858
2024-10-27 20:37:15 -06:00
6ca87210d4
check if the backend supports explicit sync before creating the object (wlroots!4848)
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4848
2024-10-27 20:37:15 -06:00
8206cc8889
fix a use after free
...
This line makes dwl crash after closing mpv with the switchtotag patch.
2024-09-12 04:33:19 +00:00
d34be5d545
remove unused link member from KeyboardGroup
...
unnecessary since grouping Keyboard wl_list to use wlr_keyboard_group in 023efce
ΔSLOC: -1
2024-08-27 23:12:00 -06:00
c49312f084
disable scene node unless it is unmanaged
2024-08-27 23:09:46 -06:00
f899060965
send a configure to unmanaged clients when mapping
2024-08-27 23:09:46 -06:00
cc72df11d6
configure xdg_toplevels after configuring it's decoration
2024-08-27 23:09:46 -06:00
0312720ae8
remove a space before parenthesis in function calls
2024-08-27 23:09:46 -06:00
6de87121e2
destroy popups when we can't get it's parent or they don't have monitor
2024-08-27 23:09:46 -06:00
bbc00d88a4
remove a redundant check
...
resize() now does the same check
2024-08-27 23:09:46 -06:00
54b546121b
avoid using a else block
2024-08-27 23:09:46 -06:00
43016bdad8
introduce client_set_scale()
2024-08-27 23:09:41 -06:00
b616476c85
remove unnecessary LayerShell.geom
...
We only used geom.x and geom.y. We can access those variables directly from the
scene node.
2024-08-27 23:09:08 -06:00
d4ad37354e
update comment about first fields of Client and LayerSurface order
2024-08-27 23:09:08 -06:00
5db05e82bd
fix style in configurex11()
2024-08-27 23:09:08 -06:00
8ec5e52e06
fix crash when a client is created while all outputs are disabled
2024-08-26 21:56:10 -06:00
0caa658276
use wlr_scene_set_gamma_control_manager_v1() (wlroots!4192)
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4192
2024-08-14 12:21:27 -06:00
07aeef1f7e
guarantee client_get_{title,appid} never return NULL
...
ΔSLOC: -6
2024-08-14 12:19:37 -06:00
334bbe6f0f
fix potential crash in configurex11()
...
We can't call resize() on unmanaged clients because they don't have borders and
resize() requires them.
Fixes: 94f4ead7da
2024-08-10 10:47:48 -06:00
1b805ddd38
account border width in configurex11()
...
Fixes: 13925eb1da
2024-08-08 14:46:25 -06:00
94f4ead7da
actually move unmanaged clients in configurex11()
...
only calling wlr_xwayland_surface_configure() may be not enough because we also
need to move the scene node in order to make effective the configure
2024-08-08 14:46:08 -06:00
bb21ecda30
improve checking in configurex11()
...
this avoids a client resizing itself when the user is interactively resizing
the client
2024-08-08 14:33:03 -06:00
b25717c939
drop a useless check in configurex11()
2024-08-08 14:19:39 -06:00
a4fa954616
do not restack xwayland surfaces (wlroots!4756)
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4756
2024-08-07 16:58:16 -06:00
35951a8d7e
add support for linux-drm-syncobj-v1 (wlroots!4715)
...
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4262
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4715
2024-08-06 12:20:25 -06:00
a634e3f527
fix crash when a virtual pointer is destroyed
...
Fixes: https://codeberg.org/dwl/dwl/issues/680
2024-08-06 12:01:22 -06:00
672b4c405d
fix maximize callback not getting deregisterd
2024-07-27 22:05:53 -06:00
b5abbc37d8
fix crash when re-mapping a client
...
Fixes: ab5c554d09
2024-07-27 21:59:27 -06:00
cd216908a7
send scale on initial commit to layer surfaces
...
Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me >
2024-07-24 06:25:54 -05:00
efe10ea655
use the parent scene node to determine if move clients out of LyrFloat
...
[sevz: commit message is mine]
2024-07-14 21:10:44 -06:00
9a962ce136
Reapply "place child clients above fullscreen clients"
...
This reverts commit 043ab3ac13 .
2024-07-14 21:10:44 -06:00
0761fd0691
Merge branch 'wlroots-next'
2024-07-14 21:10:44 -06:00
12b44421c8
bump to linux-dmabuf version 5
2024-07-13 20:23:04 -06:00
043ab3ac13
Revert "place child clients above fullscreen clients"
...
This does not work as intended. Lets revert it temporarily and add it back
after the release.
This reverts commit 298949bbc4 .
2024-07-12 21:08:48 -06:00
aede3b294b
Fix applybounds
...
Applybounds doesn't move client when it overlays
only with border with monitor to the right.
Apparently, c->geom.width already includes the border
as well.
2024-07-03 13:39:32 -06:00
7d8c3ea369
feat: focus empty monitor when clicked
2024-07-03 13:35:29 -06:00
2db0a2e8ef
use round(3) and ceilf(3) from the math library
...
ΔSLOC: -1
2024-07-03 13:27:52 -06:00
ab5c554d09
set preferred scale after the first commit (XDGshell)
2024-07-03 13:27:51 -06:00
b4638fef29
drop useless maplayersurfacenotify()
2024-07-03 13:27:51 -06:00
71f11e6cf6
set O_NONBLOCK flag to stdout
2024-07-01 20:40:54 -06:00