summaryrefslogtreecommitdiff
path: root/client.h
AgeCommit message (Collapse)Author
2024-03-31do not set withdrawn state for xwayland clientsLeonardo Hernández Hernández
Closes: https://codeberg.org/dwl/dwl/issues/573
2024-02-05place child clients above fullscreen clientsGuido Cella
When a child window of a fullscreen client is mapped, the fullscreen is disabled, and if the previously fullscreen client is floating the child window is rendered below it and cannot be seen, causing confusion, though it is still focused and interactable. Fix this by putting children of fullscreen clients in LyrFS instead of LyrFloat, and by returning before the unset_fullscreen code is called when they are mapped. focusstack() now lets you switch focus from a fullscreen client to its child windows, otherwise if you switch focus from the child window to the fullscreen client you could not focus the child window again and the fullscreen client would stay unresponsive. Child clients are not reparented to LyrFloat after leaving fullscreen, so you could spawn a child window, focus back the fullscreen client, unfullscreen it, and the child window would still be drawn above other floating clients. Avoid dealing with this edge case to keep the line count low. These cases can be tested by pressing Ctrl+o in applications with an open file dialog.
2024-02-05make XWayland clients inherit tags and monitorsGuido Cella
Revert 3213088 because the linked bug can no longer be reproduced with wlroots 0.17, and update client_get_parent() so it doesn't segfault with XWayland surfaces. This also allows reusing the p variable in the next commit.
2024-01-15turn on -Wsign-compareLeonardo Hernández Hernández
2023-12-12check toplevel resourcesLeonardo Hernández Hernández
it's just a aesthetic change
2023-12-10merge X11Managed and X11Unmanaged into X11Leonardo Hernández Hernández
now that client_is_unmanaged() checks the wlr struct we don't need to keep track of it ourselves
2023-12-10check if a client is unmanaged checking the o-r flagLeonardo Hernández Hernández
it may change at any moment and I don't really want to add a listener for it
2023-11-21Do not send repeated xdg_toplevel.configure_boundsLeonardo Hernández Hernández
Fixes: 32e66f45827cc8016ca2cef65ba61840f43fcc85
2023-11-17check toplevel resource instead of client's xdg_shell to set boundsLeonardo Hernández Hernández
2023-11-17use the new wlroots function to get a toplevel from a wlr_surfaceLeonardo Hernández Hernández
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4419
2023-11-17explicitly return -1 in the first check in toplevel_from_wlr_surfaceLeonardo Hernández Hernández
2023-11-17do not use #ifdef -> #else -> #endif in client_is_x11Leonardo Hernández Hernández
all other funcions use #ifdef -> #endif
2023-11-17delete unused functionsLeonardo Hernández Hernández
2023-11-17style fixes in client_is_float_typeLeonardo Hernández Hernández
2023-11-17correctly check if the scene node is enabled in client_is_rendered_on_monLeonardo Hernández Hernández
2023-11-17do not use magical numbers to check edgesLeonardo Hernández Hernández
the interface is declared stable, which means we could just use 0 anyway
2023-11-17simplify client_get_clipLeonardo Hernández Hernández
the clips for xwayland and xdg clients are pretty similar, after all we only need to adjust x and y for xdg clients
2023-11-14use wlr_scene_subsurface_tree_set_clipLeonardo Hernández Hernández
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
This reverts commit 72e0a560d9836c5e8658003f548203bcd722e565.
2023-11-01send maximized if tiled isn't supported (XDG shell)Leonardo Hernández Hernández
wlroots doesn't do it automatically anymore References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4409
2023-10-09Merge remote-tracking branch 'upstream/main' into wlroots-nextLeonardo Hernández Hernández
2023-10-09simplify setting the border color of clientsLeonardo Hernández Hernández
2023-08-21chase wlroots!4288Leonardo Hernández Hernández
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4288
2023-07-31set withdrawn state for xwayland invisible clientsLeonardo Hernández Hernández
2023-07-31add support for xdg-shell v6Leonardo Hernández Hernández
2023-06-02chase wlroots map logic unificationLeonardo Hernández Hernández
Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me>
2023-02-02chase wlroots!3391Leonardo Hernández Hernández
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3991
2023-02-01follow upstream xwayland_surface changesJob79
wlroots removed the `wlr_surface_is_xwayland_surface` function, and renamed `wlr_xwayland_surface_from_wlr_surface` to `wlr_xwayland_surface_try_from_wlr_surface`. related commit: https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/fbf5982e3838ee28b5345e98832f6956c402b225
2022-12-24do not try to resize if size wouldn't changeLeonardo Hernández Hernández
2022-12-24do not skip frames if a client is stopped and have a pending resizeLeonardo Hernández Hernández
2022-12-24Revert "Revert "fix flickering when resizing/spawning windows""Leonardo Hernández Hernández
This reverts commit 4a32293548667e68cd9a103e22368b8db1754deb.
2022-12-15Check width and height are not negative in client_set_bounds()Ben Jargowsky
2022-12-06Revert "fix flickering when resizing/spawning windows"Leonardo Hernández Hernández
This reverts commit 017bb7d7521f68d37bfe656c10f45edbcc92dd61. Bug: https://github.com/djpohly/dwl/issues/349
2022-12-05improve type safety of toplevel_from_wlr_surface()Leonardo Hernández Hernández
2022-12-05merge toplevel_from_{wlr_layer_surface,popup} into client_from_wlr_surfaceLeonardo Hernández Hernández
now it is a big function called toplevel_from_wlr_surface
2022-12-05sort client_get_parent()Leonardo Hernández Hernández
2022-12-03fix flickering when resizing/spawning windowsPalanix
Fixes: https://github.com/djpohly/dwl/issues/306
2022-12-01fix xwayland clients being floating by defaultLeonardo Hernández Hernández
Fix 3213088aa23e1f6cad1a5ba506dfb7318e1011c9 References: https://github.com/djpohly/dwl/pull/334#issuecomment-1333147730
2022-11-10Merge remote-tracking branch 'upstream/main' into wlroots-nextLeonardo Hernández Hernández
2022-11-09check null in toplevel_from_popupshua
managed to SEGFAULT the server by trying to create a popup without setting a parent first. Not sure if this is dwl or wlroots issue, so also opened a ticket upstream: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3811
2022-10-29Merge remote-tracking branch 'upstream/main' into wlroots-nextLeonardo Hernández Hernández
2022-10-15allow unmanaged clients (like dzen or dmenu) to have keyboard focusLeonardo Hernández Hernández
2022-10-08correctly handle cursor motion when button is held (for layer surfaces)Leonardo Hernández Hernández
2022-10-01Merge remote-tracking branch 'djpohly/main' into wlroots-nextLeonardo Hernández Hernández
2022-09-20remove unused variablesLeonardo Hernández Hernández
2022-08-27new function to notify keyboard enterLeonardo Hernández Hernández
2022-08-27sort client.h functionsLeonardo Hernández Hernández
2022-08-26Merge remote-tracking branch 'djpohly/main' into wlroots-nextLeonardo Hernández Hernández
2022-08-23set monitor for clients that don't have one in updatemons()Leonardo Hernández Hernández
only if selmon is enabled and the clients are mapped
2022-08-12handle client_from_wlr_surface() receiving a subsurfaceLeonardo Hernández Hernández