aboutsummaryrefslogtreecommitdiff
path: root/client.h
Commit message (Collapse)AuthorAgeFilesLines
* Revert "fix flickering when resizing/spawning windows"Leonardo Hernández Hernández2022-12-061-15/+0
| | | | | | This reverts commit 017bb7d7521f68d37bfe656c10f45edbcc92dd61. Bug: https://github.com/djpohly/dwl/issues/349
* improve type safety of toplevel_from_wlr_surface()Leonardo Hernández Hernández2022-12-051-15/+32
|
* merge toplevel_from_{wlr_layer_surface,popup} into client_from_wlr_surfaceLeonardo Hernández Hernández2022-12-051-61/+47
| | | | now it is a big function called toplevel_from_wlr_surface
* sort client_get_parent()Leonardo Hernández Hernández2022-12-051-13/+13
|
* fix flickering when resizing/spawning windowsPalanix2022-12-031-0/+15
| | | | Fixes: https://github.com/djpohly/dwl/issues/306
* fix xwayland clients being floating by defaultLeonardo Hernández Hernández2022-12-011-2/+1
| | | | | Fix 3213088aa23e1f6cad1a5ba506dfb7318e1011c9 References: https://github.com/djpohly/dwl/pull/334#issuecomment-1333147730
* Merge remote-tracking branch 'upstream/main' into wlroots-nextLeonardo Hernández Hernández2022-11-101-1/+3
|\
| * check null in toplevel_from_popupshua2022-11-091-1/+3
| | | | | | | | | | | | 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
* | Merge remote-tracking branch 'upstream/main' into wlroots-nextLeonardo Hernández Hernández2022-10-291-0/+26
|\|
| * allow unmanaged clients (like dzen or dmenu) to have keyboard focusLeonardo Hernández Hernández2022-10-151-0/+11
| |
| * correctly handle cursor motion when button is held (for layer surfaces)Leonardo Hernández Hernández2022-10-081-0/+15
| |
* | Merge remote-tracking branch 'djpohly/main' into wlroots-nextLeonardo Hernández Hernández2022-10-011-69/+72
|\|
| * remove unused variablesLeonardo Hernández Hernández2022-09-201-2/+0
| |
| * new function to notify keyboard enterLeonardo Hernández Hernández2022-08-271-0/+10
| |
| * sort client.h functionsLeonardo Hernández Hernández2022-08-271-68/+64
| |
* | Merge remote-tracking branch 'djpohly/main' into wlroots-nextLeonardo Hernández Hernández2022-08-261-41/+93
|\|
| * set monitor for clients that don't have one in updatemons()Leonardo Hernández Hernández2022-08-231-0/+10
| | | | | | | | only if selmon is enabled and the clients are mapped
| * handle client_from_wlr_surface() receiving a subsurfaceLeonardo Hernández Hernández2022-08-121-0/+3
| |
| * always set the same monitor and tags for child clients of a clientLeonardo Hernández Hernández2022-07-191-19/+33
| | | | | | | | fixes #272
| * remove a useless checkLeonardo Hernández Hernández2022-07-151-2/+2
| | | | | | | | | | if `s->role_data == NULL`, wlr_*_surface_from_wlr_surface() will return NULL and we are checking it
| * respect size hintsLeonardo Hernández Hernández2022-06-241-45/+38
| |
| * unconstrain layer shell popupsLeonardo Hernández Hernández2022-06-211-3/+5
| | | | | | | | also unconstrain popups from monitor's usable area
| * move ugglyness to client.hLeonardo Hernández Hernández2022-06-161-0/+11
| |
| * improve client_from_wlr_surface()Leonardo Hernández Hernández2022-06-061-3/+15
| |
| * add a new function to get a client from a wlr_surfaceLeonardo Hernández Hernández2022-05-231-0/+7
| |
* | only set bounds for clients that support itLeonardo Hernández Hernández2022-07-151-1/+4
| |
* | set client bounds at resizeLeonardo Hernández Hernández2022-06-091-0/+10
| |
* | Merge remote-tracking branch 'djpohly/main' into wlroots-nextLeonardo Hernández Hernández2022-05-171-8/+16
|\| | | | | | | chase wlroots X11 hints update
| * Check if XWayland client size_hints are NULLBen Jargowsky2022-05-151-2/+7
| |
| * fix segfault when dragging chromium tabsLeonardo Hernández Hernández2022-05-141-6/+9
| |
* | Merge remote-tracking branch 'djpohly/main' into wlroots-nextLeonardo Hernández Hernández2022-05-101-0/+2
|\|
| * add missing return in client_is_floating_type()Leonardo Hernández Hernández2022-04-101-0/+2
| | | | | | | | This causes all Xwayland clients to be treated as floating
| * improve floating detectionLeonardo Hernández Hernández2022-03-211-7/+28
| | | | | | | | mostly copied from sway
* | replace wlr_xwayland_surface_size_hints with xcb_size_hints_tLeonardo Hernández Hernández2022-05-081-3/+2
| |
* | improve floating detectionLeonardo Hernández Hernández2022-03-231-7/+28
| | | | | | | | mostly copied from sway
* | Merge branch 'main' into wlroots-nextLeonardo Hernández Hernández2022-03-201-0/+51
|\|
| * Merge branch 'main' into scenegraphLeonardo Hernández Hernández2022-03-181-0/+21
| |\
| | * constraint popups to its parent clientLeonardo Hernández Hernández2022-03-161-0/+21
| | | | | | | | | | | | | | | Closes: #146 Closes: #155
| * | do not allow set client size less than its min sizeLeonardo Hernández Hernández2022-03-181-0/+20
| |/
| * Merge branch 'fix-segfault-in-fullscreennotify'Leonardo Hernández Hernández2022-03-131-0/+10
| |\
| | * don't use fullscreen event in fullscreennotify()Leonardo Hernández Hernández2022-03-131-0/+10
| | |
* | | Merge branch 'main' into wlroots-nextLeonardo Hernández Hernández2022-03-101-2/+1
|\| |
| * | fix client_set_tiled, which was ignoring its "edges" argumentArmaël Guéneau2022-01-081-2/+1
| | |
* | | Account for changes expecting wlr_xdg_toplevel rather than wlr_xdg_surfaceA Frederick Christensen2022-02-031-5/+5
|/ /
* / simplify client_for_each_surfaceDevin J. Pohly2021-09-051-16/+14
|/ | | | | | All the XDG surface iterator does is iterate the main wlr_surface, then iterate the popups. If we inline that function, we can merge part of it with the X11 case.
* factor xwayland hackiness out into client.hDevin J. Pohly2021-05-231-0/+11
|
* consolidate some of the ugliness into a separate fileDevin J. Pohly2020-12-251-0/+163
Similar to Linux kernel approach, encapsulate some of the uglier conditional compilation into inline functions in header files. The goal is to make dwl.c more attractive to people who embrace the suckless philosophy - simple, short, hackable, and easy to understand. We want dwm users to feel comfortable here, not scare them off. Plus, if we do this right, the main dwl.c code should require only minimal changes once XWayland is no longer a necessary evil. According to `cloc`, this also brings dwl.c down below 2000 lines of non-blank, non-comment code.