aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Layer shell: Prevent infinte configure/commit loopRaphael Robatsch2022-03-311-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Check the wlr_layer_surface_v1_state.committed bitmask to see if we need to rearrange. This is also what sway does. Without this check, every commit request (even if only the attached buffer changed) will lead to another configure event, which will lead to another commit, etc. This loop results in swaybg consuming 100% CPU. Co-authored-by: Owen Rafferty <owen@owenrafferty.com>
* | | | | new functions ecalloc() and die()Leonardo Hernández Hernández2022-03-281-28/+18
| | | | | | | | | | | | | | | | | | | | | | | | | die() replaces EBARF and BARF and allow us to add `-pedantic` to CFLAGS
* | | | | check `m` in commitlayersurfacenotify()Leonardo Hernández Hernández2022-03-241-2/+1
| | | | |
* | | | | implement input-inhibitor protocolLeonardo Hernández Hernández2022-03-241-2/+8
| | | | |
* | | | | implement idle-inhibitor protocolLeonardo Hernández Hernández2022-03-241-0/+27
| | | | | | | | | | | | | | | | | | | | This allows clients to disable idle monitoring
* | | | | fix drag icon's surface returned by xytonodeLeonardo Hernández Hernández2022-03-231-12/+19
| | | | |
* | | | | set position of the drag icon in startdrag()Leonardo Hernández Hernández2022-03-231-6/+5
| | | | |
* | | | | Revert "clients now works as expected in drag motion"Leonardo Hernández Hernández2022-03-231-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 9aec6049ecbefe3618f34002d2239cc9462c07e9. this problem is caused because xytonode() returns the surface of the drag icon
* | | | | inline the presentation variableGuido Cella2022-03-231-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This variable can be removed since with scene-graph wlr_presentation_surface_sampled_on_output no longer needs to be called.
* | | | | Fix dwl freezing when resizingPalanix2022-03-231-6/+22
| | | | |
* | | | | Add a configuration option for fullscreen lockingQuentin Rameau2022-03-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Some people are annoyed to have this new behaviour forced for some application which use fake fullscreen.
* | | | | clients now works as expected in drag motionLeonardo Hernández Hernández2022-03-221-5/+8
| | | | |
* | | | | implement drag and dropGuido Cella2022-03-221-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For brevity, only a single drag icon at a time is supported. Co-authored-by: Leonardo Hernández Hernández <leohdz172@protonmail.com>
* | | | | only skip frames if there are visible clients that have a resizeLeonardo Hernández Hernández2022-03-211-2/+4
| | | | |
* | | | | remove a useless resize in mapnotify()Leonardo Hernández Hernández2022-03-211-1/+0
| | | | | | | | | | | | | | | | | | | | applyrules() calls setmon() which calls resize()
* | | | | destroy scene_output in cleanupmon()Leonardo Hernández Hernández2022-03-201-0/+1
| |_|_|/ |/| | |
* | | | remove independents listLeonardo Hernández Hernández2022-03-201-6/+2
| | | |
* | | | remove unneeded variablesLeonardo Hernández Hernández2022-03-181-2/+1
| | | |
* | | | attach presentation to sceneLeonardo Hernández Hernández2022-03-181-0/+1
| | | |
* | | | Merge branch 'main' into scenegraphLeonardo Hernández Hernández2022-03-181-0/+7
|\ \ \ \
| * | | | fix crash of Firefox when opening a popup larger than its sizeLeonardo Hernández Hernández2022-03-171-2/+4
| | | | |
| * | | | constraint popups to its parent clientLeonardo Hernández Hernández2022-03-161-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | Closes: #146 Closes: #155
* | | | | do not allow set client size less than its min sizeLeonardo Hernández Hernández2022-03-181-2/+4
| | | | |
* | | | | make sure to destroy wlr_scene_node of unmanaged clientsLeonardo Hernández Hernández2022-03-181-1/+3
| | | | |
* | | | | do not create borders for unmanaged clientsLeonardo Hernández Hernández2022-03-181-7/+8
| | | | |
* | | | | pointerfocus: only use provided surfaceLeonardo Hernández Hernández2022-03-181-16/+6
| | | | | | | | | | | | | | | | | | | | if a client is given focus it
* | | | | use xdg_shell helperLeonardo Hernández Hernández2022-03-181-2/+3
| | | | | | | | | | | | | | | | | | | | for xwayland continue using wlr_scene_subsurface_create()
* | | | | get old client by surface's nodeLeonardo Hernández Hernández2022-03-181-10/+5
| | | | |
* | | | | Merge branch 'main' into scenegraphLeonardo Hernández Hernández2022-03-161-83/+98
|\| | | |
| * | | | make sure configure and activate listeners are removed from listLeonardo Hernández Hernández2022-03-161-2/+3
| | | | |
| * | | | Merge branch 'fix-segfault-in-fullscreennotify'Leonardo Hernández Hernández2022-03-131-1/+11
| |\ \ \ \
| | * | | | don't use fullscreen event in fullscreennotify()Leonardo Hernández Hernández2022-03-131-3/+4
| | | | | |
| | * | | | fullscreennotify: don't crash if called before mapRaphael Robatsch2021-11-131-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SDL2 calls xdg_toplevel.unset_fullscreen() before the surface is mapped. This causes a segfault in dwl because setfullscreen() expects the surface to be mapped already. Therefore, delay the setfullscreen call until the surface is mapped.
| * | | | | always call arrange() on setfullscreen()Leonardo Hernández Hernández2022-03-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | also don't count full screen clients on tile()
| * | | | | print status about floating and fullscreenLeonardo Hernández Hernández2022-03-131-1/+7
| | | | | |
| * | | | | more style fixesLeonardo Hernández Hernández2022-03-111-28/+17
| | | | | |
| * | | | | suckless style: don't use '//' for commentsLeonardo Hernández Hernández2022-03-111-17/+17
| | | | | |
| * | | | | use loop to call arrangelayerLeonardo Hernandez Hernandez2022-03-111-18/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zwlr_layer_shell_v1_layer are ordered by bottom-most first so we can just use a loop from 3 to 0
| * | | | | Merge pull request #196 from noocsharp/mainSevz2022-03-111-0/+10
| |\ \ \ \ \ | | | | | | | | | | | | | | die on allocation failure
| | * | | | | die on allocation failureNihal Jere2022-02-221-0/+10
| | | | | | |
| * | | | | | use wlr_box for previous geomLeonardo Hernández Hernández2022-03-101-10/+3
| | | | | | |
| * | | | | | fix crash when the last monitor is disconnectedLeonardo Hernandez Hernandez2022-03-101-5/+16
| | |_|_|_|/ | |/| | | |
| * | | | | Merge pull request #187 from fauxmight/new-clients-printstatusSevz2022-03-101-0/+2
| |\ \ \ \ \ | | | | | | | | | | | | | | Newly launched or closed clients ALWAYS generate status update
| | * | | | | Newly launched or closed clients ALWAYS generate status updateA Frederick Christensen2021-12-311-0/+2
| | | |_|_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this change, if a client whose tag(s) are not currently selected is launched or killed, no update to status was printed and status bars being fed by printstatus() did not update newly active or newly inactive (but unselected) tags.
| * | | | | Merge pull request #149 from xi/fix-grabc-unmapSevz2022-03-101-0/+4
| |\ \ \ \ \ | | | | | | | | | | | | | | reset cursor mode when grabc is unmapped
| | * | | | | reset cursor mode when grabc is unmappedTobias Bengfort2021-09-041-0/+4
| | | | | | |
| * | | | | | remove typedef `Decoration`Leonardo Hernandez Hernandez2022-03-081-5/+0
| | |_|/ / / | |/| | | |
| * | | | | Merge pull request #160 from Humm42/closepipesDevin J. Pohly2022-02-151-0/+2
| |\ \ \ \ \ | | |_|/ / / | |/| | | | -s: close unused fds
| | * | | | -s: close unused fdsHumm2021-10-131-0/+2
| | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | dup2 doesn’t close fds, it only duplicates them. The old ones weren’t closed, causing problems (like dwl blocking due to the child process never reading from the reading end, even if stdin has been closed).
* | | | | set correct position for unmanaged clientsLeonardo Hernandez Hernandez2022-03-161-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | - don't allow to move/resize with them - don't focus unmanaged clients on buttonpress()