aboutsummaryrefslogtreecommitdiffstats
path: root/dwl.c
AgeCommit message (Collapse)AuthorLines
2023-12-10do not blindly try to send motion events when pointer button is pressedLeonardo Hernández Hernández-9/+9
we don't have to do this if the surface is the same
2023-12-07sort LISTEN calls in createnotify{,x11}Leonardo Hernández Hernández-4/+4
2023-12-07use the same style for urgent() and sethints()Leonardo Hernández Hernández-4/+4
2023-12-07remove an unneeded cast in createpointer()Leonardo Hernández Hernández-2/+1
2023-12-07avoid duplication of linesLeonardo Hernández Hernández-2/+1
the output state is copied when creating a output configuration head
2023-12-07add explanation about why we try to re-apply the gamma LUT on output changesLeonardo Hernández Hernández-0/+2
2023-12-07relax a bit the line length limitLeonardo Hernández Hernández-2/+1
2023-12-07add a blank line to improve readabilityLeonardo Hernández Hernández-0/+1
2023-12-07use (struct wlr_box){0} to empty the Monitor areasLeonardo Hernández Hernández-2/+1
2023-12-07copy layout symbol when matching a MonitorRuleLeonardo Hernández Hernández-4/+4
2023-12-07remove extra blank lineLeonardo Hernández Hernández-1/+0
2023-12-07LayerSurface::link -> LayerSurface.linkLeonardo Hernández Hernández-1/+1
2023-12-07set the correct border color when mapping a clientLeonardo Hernández Hernández-1/+2
2023-12-07reduce calls to client_get_geometryLeonardo Hernández Hernández-2/+2
2023-12-07store the layersurface pointer in l->popups->node.data as wellLeonardo Hernández Hernández-1/+1
2023-12-07make sure popups of a layer surface are in the correct layerLeonardo Hernández Hernández-1/+2
previously it worked because we checked in every commit the layer in a353eee2cac0378a4201e408a3417aa107a7f647 and b100b446b8c82bc2dcdbb40856ab87ed4a4ad594 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-01sort #includesLeonardo Hernández Hernández-1/+1
2023-11-30don't return early if the first output commit failsLeonardo Hernández Hernández-4/+1
2023-11-30check failure of wlr_output_init_renderLeonardo Hernández Hernández-3/+6
2023-11-30use detached output state in createmon()Leonardo Hernández Hernández-6/+12
see previous commit for motivation
2023-11-30use a detached output state in outputmgrapplyortest()Leonardo Hernández Hernández-12/+13
wlr_output.pending might be removed in wlroots 0.18
2023-11-25use `l` instead of `layersurface`Leonardo Hernández Hernández-82/+72
`layer_surface` instead of `wlr_layer_surface` and `scene_layer` whenever a wlr_scene_tree is related to layer surfaces
2023-11-25return early if a layersurface didn't commit somethingLeonardo Hernández Hernández-5/+5
2023-11-25do not check if a layer surface has monitor on commitLeonardo Hernández Hernández-6/+0
We do not allow creating them w/o monitor and they are destroyed when destroying their monitor
2023-11-25send wl_surface.enter before initial commitLeonardo Hernández Hernández-0/+1
It's not necessary but it'll help clients to render a perfect first frame
2023-11-25destroy the layer-suface's scene tree for popupsLeonardo Hernández Hernández-0/+1
2023-11-25use wlr_box_equal() instead of memcmpLeonardo Hernández Hernández-1/+1
2023-11-25simplify settings popups scene tree parentLeonardo Hernández Hernández-3/+2
2023-11-25simplify check for wlr_layer_surface.outputLeonardo Hernández Hernández-4/+2
2023-11-25use sizeof(*pointer) instead of sizeof(struct)Leonardo Hernández Hernández-1/+1
2023-11-25make sure to unlink Monitor.request_state listenerLeonardo Hernández Hernández-1/+3
2023-11-25Merge branch 'wlroots-next'Leonardo Hernández Hernández-176/+249
2023-11-21try to apply gamma LUT in updatemonsLeonardo Hernández Hernández-1/+1
this in the case the output was re-enabled
2023-11-21ignore wl_surface.commit for xwayland clientsLeonardo Hernández Hernández-2/+0
This is no longer needed
2023-11-21Do not send repeated xdg_toplevel.configure_boundsLeonardo Hernández Hernández-0/+1
Fixes: 32e66f45827cc8016ca2cef65ba61840f43fcc85
2023-11-21resize clients on commitLeonardo Hernández Hernández-0/+3
Fixes: https://github.com/djpohly/dwl/issues/515 This reverts commit 4567979b16b0509bb80b6102ecb9b601b3cf6fa1.
2023-11-19createkeyboard: do not segfault if xkb_keymap_new_from_names returns NULLlink2xt-0/+2
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-18do not try to enable adaptive syncLeonardo Hernández Hernández-5/+0
2023-11-17fix the position of the cursor image after turning all the monitors onLeonardo Hernández Hernández-0/+7
2023-11-17remove unused #includeLeonardo Hernández Hernández-1/+0
2023-11-17do not check if `session` is non-NULLLeonardo Hernández Hernández-2/+1
wlr_session_change_vt() is a no-op if session == NULL
2023-11-17do not explicitly destroy some wlroots interfacesLeonardo Hernández Hernández-6/+3
they are destroyed when the wayland display is destroyed
2023-11-17fix docsLeonardo Hernández Hernández-19/+19
copied from tinywl
2023-11-17fix destroynotify() docsLeonardo Hernández Hernández-1/+1
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4421
2023-11-17prevent a use-after-free at exitLeonardo Hernández Hernández-0/+1
2023-11-17do not compute layout box twiceLeonardo Hernández Hernández-2/+2
2023-11-17make sure fullscreen clients have the right sizeLeonardo Hernández Hernández-0/+3
2023-11-17fix screen artifacts when setting gammaLeonardo Hernández Hernández-15/+32
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-14use wlr_scene_subsurface_tree_set_clipLeonardo Hernández Hernández-0/+3
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4131 Closes: https://github.com/djpohly/dwl/issues/411
2023-11-14Revert "respect size hints"Leonardo Hernández Hernández-13/+3
This reverts commit 72e0a560d9836c5e8658003f548203bcd722e565.