Commit Graph
4019 Commits
Author SHA1 Message Date
trurl d50adaa1c8 Use free() on memory returned by FcNameUnparse and hand back wfree-managed pointers from our functions.
This is necessary because we now allocate memory through a special allocator of
our own on the Rust side. Passing raw malloc'd pointers to wfree will break
things.
2025-10-23 14:46:56 -04:00
trurl 5b0ad78f01 Remember to AC_SUBST the Rust compiler environment variables so they're visible in Makefiles. 2025-10-23 14:46:56 -04:00
trurl 46fcbb0ff1 Port custom allocators (WINGs memory.c) to Rust.
This introduces the crate wutil-rs, which is intended to be the destination for
migrating the API of WINGs/WINGs/WUtil.h to Rust.
2025-10-23 14:46:56 -04:00
trurl e3fb8ddbc8 Rip out Boehm GC support.
This is done to simplify memory management across the boundary between C and
Rust. While rewriting WINGs, we may want to be able to malloc/free with the libc
allocator on both sides of that divide.
2025-10-23 14:46:56 -04:00
trurl 59ad67f4dc Provide a janky script for running Window Maker in a captive Xephyr X server.
If this becomes a permanent fixture, hard-coded values should be fixed.
2025-10-23 14:39:53 -04:00
trurl 5325e2d455 Improve automake integration with Rust build.
Now ./configure checks for cargo and rustc, and `make` will rebuild wmaker-rs if
any of its source code has changed.

There are still some steps to take for better integration (like ensuring that
deps are vendored correctly). See
https://viruta.org/librsvgs-build-infrastructure-autotools-and-rust.html for
suggestions on what else to do.
2025-09-19 20:02:54 -04:00
trurl 82c8b0c9b4 Rename wmakerlib dir to wmaker-rs for econsistency with future libs. 2025-09-13 14:54:13 -04:00
trurl a67f7483fd Clean up parameters that were commented out. 2025-09-09 22:27:55 -04:00
trurl cf87f7e83b Finish moving WApplication struct defn and methods into Rust. 2025-09-09 22:23:59 -04:00
trurl b569889f21 Expose RRetainImage from wrlib for Rust. 2025-09-09 22:21:15 -04:00
trurl 383b3a1a7b Expose some WMHandlerID methods from WINGs for Rust. 2025-09-09 22:20:07 -04:00
trurl 4fd7d1e2c1 Forgot to include screen.rs earlier. 2025-09-09 22:19:41 -04:00
trurl 0131c493c0 Expose PropGetWMClass for Rust. 2025-09-09 22:19:16 -04:00
trurl 5f1317b885 Forgot to include global module in lib.rs. 2025-09-09 22:18:49 -04:00
trurl 5817c1f032 Expose a Rust type for WMenu. 2025-09-09 22:18:30 -04:00
trurl 6d09fbff93 Expose wDockFinishLaunch for WApplication. 2025-09-09 22:18:03 -04:00
trurl b38fa197d7 Expose wDefaultFillAttributes for Rust. 2025-09-09 22:17:46 -04:00
trurl 4c617034b4 Expose AppMenu method used by WApplication. 2025-09-09 22:17:22 -04:00
trurl f5daf2a76a Expose WAppIcon methods used by WApplication. 2025-09-09 22:16:31 -04:00
trurl 05895b40a2 Forgot to add wrlib module to lib.rs. 2025-09-09 22:07:37 -04:00
trurl 4f4ef94400 Expose start_hidden and emulate_appicon attrs of WWindow. 2025-09-09 21:57:17 -04:00
trurl 023ab177b2 Expose WWindow attributes so they can be seen from Rust. 2025-09-09 21:56:30 -04:00
trurl 279f369256 Expose w_global.context so it can be seen from Rust. 2025-09-09 20:16:02 -04:00
trurl 0a2ff4f055 Expose various other WWindow fields so they can be seen from Rust.
Fields: client_win, screen_ptr, wm_hints, wm_class, wm_instance,
defined_user_flags.
2025-09-09 19:41:12 -04:00
trurl 108c913c1d Expose WWindow::user_flags so that it can be seen from Rust. 2025-09-09 19:36:36 -04:00
trurl 8c669d57b2 Expose WWindow::net_icon_image so that it can be seen from Rust. 2025-09-09 19:34:57 -04:00
trurl 83fa8119d9 Expose WWindow::main_windowc so that it can be seen from Rust. 2025-09-09 17:00:57 -04:00
trurl 507e69e209 Expose WWindow::fake_group so that it can be seen from Rust. 2025-09-09 16:54:30 -04:00
trurl 70814cc235 Add a module for the WWindow type. 2025-09-09 16:52:21 -04:00
trurl 2ef6720890 Expose WIcon::highlighted so that it can be seen from Rust. 2025-09-09 15:52:33 -04:00
trurl 493d3c9738 Expose WScreen::root_win so that it can be seen from Rust. 2025-09-09 15:49:52 -04:00
trurl 917cc29160 Use repr(C) for Application flags to use them from an FFI interace. 2025-09-09 15:45:57 -04:00
trurl 3234e15388 Move WApplication refcount maintenance into Rust. 2025-09-05 02:24:03 -04:00
trurl 394b4d23cb Add forgotten use std::ptr. 2025-09-05 02:05:04 -04:00
trurl 274d1459aa Move wApplicationClearUrgentBounceTimer into Rust. 2025-09-05 02:02:34 -04:00
trurl 9a886baef8 Ditch linked list pointers in Rust application struct, too. 2025-09-05 02:00:48 -04:00
trurl 7ba66fbc00 Get rid of unused intrusive linked list in WApplication.
There is code to maintain this list in wApplicationDestroy, but use of it was
removed in 2001 (see commit 672c42cc48). So let's do some cleanup.
2025-09-05 01:49:20 -04:00
trurl 289ceb2991 First stab at defining WApplication methods in Rust.
This builds and appears to run.
2025-09-03 21:38:35 -04:00
trurl ab7e188334 Add Cargo build outputs at prospective build path to .gitignore. 2025-09-03 20:59:39 -04:00
trurl 55d34ff0a1 Make bitfields in WApplication's flags struct into real fields.
This will ease interop with Rust.
2025-09-03 20:58:31 -04:00
trurl 0e7f125494 Move WApplication definition and remaining methods into a separate file.
This should provide a more solid interface boundary for a WApplication
replacement written in Rust.
2025-09-03 20:55:12 -04:00
trurl 9404c21fa8 Duplicate src/application.c to preserve revision history. 2025-09-03 20:43:59 -04:00
trurl 455aa71c19 Hide WAppIcon fields in favor of accessors. 2025-09-01 21:20:22 -04:00
trurl 18db22063c Hide WDock fields in favor of accessors. 2025-08-25 22:46:23 -04:00
trurl b4d1dbe953 Hide WApplication fields in favor of accessors. 2025-08-24 23:41:16 -04:00
Doug TorranceandCarlos R. Mafra da676c9e9e Add WPrefs Serbian translation to EXTRA_DIST
Otherwise "make check" fails (script/check-translation-sources.sh).
2024-11-12 10:15:17 +00:00
Doug TorranceandCarlos R. Mafra 4edf589a5b Remove cruft from autogen.sh 2024-11-12 10:15:17 +00:00
Doug TorranceandCarlos R. Mafra 709eec4bce Update autogen.sh so that it can be run from build directory 2024-11-12 10:15:17 +00:00
Jeremy SowdenandCarlos R. Mafra b179803c11 Fix spelling errors
* "unknow" -> "unknown"
* "occured" -> "occurred"

Remove some entries from PO files where these entries contain spelling errors
and there are other entries that are identical except for these mistakes.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2024-11-10 16:59:03 +00:00
Jeremy SowdenandCarlos R. Mafra 5cd40deb20 Add missing Language: headers to PO files
msgfmt complains.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
2024-11-10 16:59:03 +00:00