Commit Graph

69 Commits

Author SHA1 Message Date
Leonardo Hernández Hernández
1d08ade132 remove binary before copying to destination
Since Linux 6.11 is possible overwrite a running executable, possibly making it
crash.

Thanks to: movq42rax
Fixes: https://codeberg.org/dwl/dwl/issues/709
References: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2a010c412853
References: https://lore.kernel.org/stable/CACKH++YAtEMYu2nTLUyfmxZoGO37fqogKMDkBpddmNaz5HE6ng@mail.gmail.com/T/#u
2024-11-15 00:26:51 -06:00
Leonardo Hernández Hernández
e454f7ae81 allow the use of non-system wlroots library
References: https://codeberg.org/dwl/dwl/issues/646#issuecomment-2032644
2024-08-14 12:00:52 -06:00
Leonardo Hernández Hernández
d136dadf45 -pedantic -> -Wpedantic
Bug: https://codeberg.org/dwl/dwl/issues/584
2024-08-01 22:41:00 -06:00
Leonardo Hernández Hernández
2553111aa3 bump wlroots version 2024-07-14 21:34:44 -06:00
Leonardo Hernández Hernández
0761fd0691 Merge branch 'wlroots-next' 2024-07-14 21:10:44 -06:00
Leonardo Hernández Hernández
2db0a2e8ef use round(3) and ceilf(3) from the math library
ΔSLOC: -1
2024-07-03 13:27:52 -06:00
Leonardo Hernández Hernández
baedf7f791 Merge remote-tracking branch 'upstream/main' into wlroots-next 2024-06-20 23:32:44 -06:00
Leonardo Hernández Hernández
9cdce1b8ff try to limit (79 characters) the line lenght in the Makefile 2024-06-20 23:29:26 -06:00
Leonardo Hernández Hernández
4cf1d604b8 Merge remote-tracking branch 'upstream/main' into wlroots-next 2024-06-20 22:44:50 -06:00
thanatos
650a918010 Updated power management handling to address issues raised in the PR 2024-06-20 19:11:53 -06:00
Emil Miler
9b1f35e42b Implement support for output power management
This patch is based on the original stale patch by Guido Cella @guidocella.
It has been modified to apply cleanly to the latest v5.0 tag. Since the SLOC
limit is now lifted, this core feature should be merged into dwl upstream.

Thanks to Dima Krasner @dimkr for the cherry-pick.

Closes: #559, #525
2024-06-20 19:11:52 -06:00
Leonardo Hernández Hernández
7570dc0a41 minor adjustments in Makefile 2024-06-13 14:46:09 -06:00
Leonardo Hernández Hernández
57b5e41063 use enum headers when possible 2024-06-08 20:16:16 -06:00
Leonardo Hernández Hernández
bf81a128ec wlroots now allows parallel installs 2024-05-27 23:10:40 -06:00
Forrest Bushstone
ea33ce9ae6 Support pointer constraints and relative pointer protocols
Fixes: https://codeberg.org/dwl/dwl/issues/489
FIxes: https://codeberg.org/dwl/dwl/issues/317
2024-03-11 11:34:26 -06:00
Leonardo Hernández Hernández
a1f3e25c35 turn on -Wfloat-conversion 2024-01-15 02:09:18 +00:00
Leonardo Hernández Hernández
0151bd48dd turn on -Wsign-compare 2024-01-15 02:09:18 +00:00
Leonardo Hernández Hernández
d08e6a3a7e include CHANGELOG.md in the tarball
Fixes: 24576f1fdf
2023-11-25 01:22:48 -06:00
Leonardo Hernández Hernández
7611dc91d7 enable debug symbols by default
they does not affect performance and the size's increase is negligible
2023-11-17 11:03:32 -06:00
Leonardo Hernández Hernández
b299e01e44 Merge remote-tracking branch 'upstream/main' into wlroots-next 2023-10-09 11:45:51 -06:00
Leonardo Hernández Hernández
342850487a include dwl.desktop in the tarbal 2023-09-24 14:43:30 -06:00
Leonardo Hernández Hernández
1333f8cc6e Merge remote-tracking branch 'upstream/main' into wlroots-next 2023-09-24 11:44:29 -06:00
Leonardo Hernández Hernández
5baf195523 allow specify DATADIR (to install desktop file) 2023-09-24 11:24:39 -06:00
Weiseguy
773bd04764 Add desktop entry file 2023-09-22 19:49:18 -06:00
Leonardo Hernández Hernández
0e5405610e add support for cursor-shape-v1
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4106
2023-07-23 19:56:55 -06:00
Leonardo Hernández Hernández
87c4c1f629 convert some warnings to errors 2022-10-05 21:28:14 -05:00
Leonardo Hernández Hernández
31106eff64 rework Makefile
- allow user to use a different pkg-config binary
- restore almost all (and add other ones) warning flags (-Werror is not set)
- $(XWAYLAND) is added to our CPPFLAGS
- remove useless comments
- don't generate idle-protocol.h (not used)
2022-09-20 23:34:48 -05:00
Leonardo Hernández Hernández
871463c327 define _POSIX_C_SOURCE through CPPFLAGS
like dwm
2022-09-08 00:10:53 -05:00
Leonardo Hernández Hernández
6ce035303e fix dist target 2022-08-08 21:30:37 -05:00
Leonardo Hernández Hernández
0eff78d6c2 include DWLCFLAGS into linking step 2022-07-06 23:41:42 -05:00
Grant Nichol
671a9b450b Fix make install while files are in use
When the dwl executable is in use, cp fails without the -f flag.

POSIX defines this flag with:
> If a file descriptor for a destination file cannot be obtained,
> as described in step 3.a.ii., attempt to unlink the destination
> file and proceed.
2022-06-12 15:58:38 -05:00
Leonardo Hernández Hernández
c008bf2a7d add $(LIBS) to $(LDLIBS) 2022-06-10 12:21:23 -05:00
Dima Krasner
c990dbd441 fix link failure with --as-needed 2022-06-10 19:26:45 +03:00
Leonardo Hernández Hernández
d969289baf use LDFLAGS to build dwl target 2022-06-06 23:36:45 -05:00
Leonardo Hernández Hernández
50b6630f3d do not generate *-protocol.{c,o}
according with
62fbf3f4ba
they are unused and wlroots-based compositors don't need to do this
2022-06-06 22:54:40 -05:00
Leonardo Hernández Hernández
14641560b0 include xcb only when building with xwayland support 2022-06-06 22:53:36 -05:00
KawaiiAmber
7b42232ad1 convert makefile to be more portable 2022-06-06 22:53:36 -05:00
Leonardo Hernández Hernández
d5a741c9b4 add dist target 2022-05-09 16:25:03 -05:00
Leonardo Hernández Hernández
5d8084daa7 add flag to print version and exit 2022-05-09 16:24:36 -05:00
Leonardo Hernández Hernández
b424602ebc add DESTDIR 2022-03-31 09:43:56 -06:00
Leonardo Hernández Hernández
2d6f932ecf don't let -pedantic be overridable by environment 2022-03-31 09:21:27 -06:00
Leonardo Hernández Hernández
aab397c30b new functions ecalloc() and die()
die() replaces EBARF and BARF
and allow us to add `-pedantic` to CFLAGS
2022-03-28 15:02:09 -06:00
Humm
0c4740b277 add dwl(1)
Documentation is good.  Man pages are documentation.  A program without
a man page is worthless.
2022-03-13 00:46:24 +01:00
Jason Goulet-Lipman
d57db4cac9 added uninstall target 2021-04-19 09:05:35 -04:00
Devin J. Pohly
4170a90fbc group phony targets together in Makefile 2021-04-15 13:04:31 -05:00
Devin J. Pohly
6a0dec69ec re-compile if config.mk changes 2021-04-15 13:03:21 -05:00
Devin J. Pohly
43f1076833 remember to add client.h in Makefile 2021-01-18 14:16:24 -06:00
Devin J. Pohly
2230f92ef0 add "all" target 2020-12-25 12:07:43 -05:00
Devin J. Pohly
206427537a Merge updates from guidocella
Thanks so much for helping to keep the project running while life was
crazy!
2020-12-24 21:56:41 -05:00
Devin J. Pohly
62529e251d Merge pull request #49 from guidocella/layer-shell
Layer shell
2020-12-24 20:24:14 -05:00