Commit Graph

  • 6a98614d13 Clarify wmalloc contract - it's safe to read before writing. Stu Black 2025-10-23 12:21:29 -04:00
  • dfdaa67b4d Chasing memory bugs in memory.rs: allocate the right layout. Stu Black 2025-10-23 12:14:18 -04:00
  • e6fd7e49f8 Clean things up a little bit with refutable let. Stu Black 2025-10-23 12:12:27 -04:00
  • 12930739ec Allocate PropList description with memory::alloc_bytes. Stu Black 2025-10-17 11:47:22 -04:00
  • cf588d6e27 Simplify path_from_cstr substantially (h/t cross). Stu Black 2025-10-17 11:00:48 -04:00
  • f3961ba66f Reimplement the PropList data structure in Rust. Stu Black 2025-10-16 21:33:47 -04:00
  • 5b593fb19a Expose the GSUSER_SUBDIR preprocessor symbol to Rust. Stu Black 2025-10-16 09:38:01 -04:00
  • f2e9123db6 Port WINGs data.c (WMData) to Rust. Stu Black 2025-10-04 12:31:54 -04:00
  • 791149fe70 Correct oversight in how WMMapArray is supposed to work. Stu Black 2025-10-03 22:55:52 -04:00
  • 52b0e6b182 Drop WMData's destructor field. Stu Black 2025-10-03 01:19:07 -04:00
  • bbcf40ee47 Eliminate the WINGs function WMCreateDataWithBytesNoCopy. Stu Black 2025-10-03 01:16:32 -04:00
  • 9d07e2d3d8 Eliminate the unused WINGs function WMGetSubdataWithRange. Stu Black 2025-10-03 01:02:40 -04:00
  • dea8c36cd5 Eliminate the unused WINGs function WMCreatePLDataWithBytesNoCopy. Stu Black 2025-10-03 01:01:15 -04:00
  • 3beadbb6cb Forgot to add new array.rs impl. Stu Black 2025-10-03 00:50:02 -04:00
  • dd36130730 Fix const qualifier on strings returned by wgethomedir. Stu Black 2025-10-03 00:44:58 -04:00
  • 6ede7a5cb0 Reimplement WINGs array.c in Rust. Stu Black 2025-10-03 00:43:56 -04:00
  • 2b9b915768 Replace most WUtil functions in findfile.c with Rust impls. Stu Black 2025-10-02 14:22:20 -04:00
  • d50adaa1c8 Use free() on memory returned by FcNameUnparse and hand back wfree-managed pointers from our functions. Stu Black 2025-10-02 13:26:57 -04:00
  • 5b0ad78f01 Remember to AC_SUBST the Rust compiler environment variables so they're visible in Makefiles. Stu Black 2025-10-02 13:24:51 -04:00
  • 46fcbb0ff1 Port custom allocators (WINGs memory.c) to Rust. Stu Black 2025-09-21 15:31:47 -04:00
  • e3fb8ddbc8 Rip out Boehm GC support. Stu Black 2025-09-11 17:10:07 -04:00
  • 59ad67f4dc Provide a janky script for running Window Maker in a captive Xephyr X server. Stu Black 2025-10-23 14:39:53 -04:00
  • d91275d959 memory: replace most of memory.c with Rust mem Dan Cross 2025-10-12 01:14:35 +00:00
  • 5325e2d455 Improve automake integration with Rust build. Stu Black 2025-09-14 18:09:29 -04:00
  • 82c8b0c9b4 Rename wmakerlib dir to wmaker-rs for econsistency with future libs. Stu Black 2025-09-13 14:54:13 -04:00
  • 02d638d1c6 Define WAppIcon struct in Rust. refactor/rust_app_icon Stu Black 2025-09-09 22:41:10 -04:00
  • 54bd69680a Make bitfields into regular fields so we can mirror WAppIcon in Rust. Stu Black 2025-09-09 22:37:37 -04:00
  • a67f7483fd Clean up parameters that were commented out. refactor/rust_wapplication refactor/rust_icon Stu Black 2025-09-09 22:27:55 -04:00
  • cf87f7e83b Finish moving WApplication struct defn and methods into Rust. Stu Black 2025-09-09 22:23:59 -04:00
  • b569889f21 Expose RRetainImage from wrlib for Rust. Stu Black 2025-09-09 22:21:15 -04:00
  • 383b3a1a7b Expose some WMHandlerID methods from WINGs for Rust. Stu Black 2025-09-09 22:20:07 -04:00
  • 4fd7d1e2c1 Forgot to include screen.rs earlier. Stu Black 2025-09-09 22:19:41 -04:00
  • 0131c493c0 Expose PropGetWMClass for Rust. Stu Black 2025-09-09 22:19:16 -04:00
  • 5f1317b885 Forgot to include global module in lib.rs. Stu Black 2025-09-09 22:18:49 -04:00
  • 5817c1f032 Expose a Rust type for WMenu. Stu Black 2025-09-09 22:18:30 -04:00
  • 6d09fbff93 Expose wDockFinishLaunch for WApplication. Stu Black 2025-09-09 22:18:03 -04:00
  • b38fa197d7 Expose wDefaultFillAttributes for Rust. Stu Black 2025-09-09 22:17:46 -04:00
  • 4c617034b4 Expose AppMenu method used by WApplication. Stu Black 2025-09-09 22:17:22 -04:00
  • f5daf2a76a Expose WAppIcon methods used by WApplication. Stu Black 2025-09-09 22:16:31 -04:00
  • 05895b40a2 Forgot to add wrlib module to lib.rs. Stu Black 2025-09-09 22:07:37 -04:00
  • 4f4ef94400 Expose start_hidden and emulate_appicon attrs of WWindow. Stu Black 2025-09-09 21:57:17 -04:00
  • 023ab177b2 Expose WWindow attributes so they can be seen from Rust. Stu Black 2025-09-09 21:56:30 -04:00
  • 279f369256 Expose w_global.context so it can be seen from Rust. Stu Black 2025-09-09 20:16:02 -04:00
  • 0a2ff4f055 Expose various other WWindow fields so they can be seen from Rust. Stu Black 2025-09-09 19:41:12 -04:00
  • 108c913c1d Expose WWindow::user_flags so that it can be seen from Rust. Stu Black 2025-09-09 19:36:36 -04:00
  • 8c669d57b2 Expose WWindow::net_icon_image so that it can be seen from Rust. Stu Black 2025-09-09 19:34:57 -04:00
  • 83fa8119d9 Expose WWindow::main_windowc so that it can be seen from Rust. Stu Black 2025-09-09 17:00:57 -04:00
  • 507e69e209 Expose WWindow::fake_group so that it can be seen from Rust. Stu Black 2025-09-09 16:54:30 -04:00
  • 70814cc235 Add a module for the WWindow type. Stu Black 2025-09-09 16:52:21 -04:00
  • 2ef6720890 Expose WIcon::highlighted so that it can be seen from Rust. Stu Black 2025-09-09 15:52:33 -04:00
  • 493d3c9738 Expose WScreen::root_win so that it can be seen from Rust. Stu Black 2025-09-09 15:49:52 -04:00
  • 917cc29160 Use repr(C) for Application flags to use them from an FFI interace. Stu Black 2025-09-09 15:45:57 -04:00
  • 3234e15388 Move WApplication refcount maintenance into Rust. Stu Black 2025-09-05 02:24:03 -04:00
  • 394b4d23cb Add forgotten use std::ptr. Stu Black 2025-09-05 02:05:04 -04:00
  • 274d1459aa Move wApplicationClearUrgentBounceTimer into Rust. Stu Black 2025-09-05 02:02:34 -04:00
  • 9a886baef8 Ditch linked list pointers in Rust application struct, too. Stu Black 2025-09-05 02:00:48 -04:00
  • 7ba66fbc00 Get rid of unused intrusive linked list in WApplication. Stu Black 2025-09-05 01:49:20 -04:00
  • 289ceb2991 First stab at defining WApplication methods in Rust. Stu Black 2025-09-03 21:38:35 -04:00
  • ab7e188334 Add Cargo build outputs at prospective build path to .gitignore. Stu Black 2025-09-03 20:40:55 -04:00
  • 55d34ff0a1 Make bitfields in WApplication's flags struct into real fields. Stu Black 2025-09-03 20:58:31 -04:00
  • 0e7f125494 Move WApplication definition and remaining methods into a separate file. Stu Black 2025-09-03 20:55:12 -04:00
  • 9404c21fa8 Duplicate src/application.c to preserve revision history. Stu Black 2025-09-03 20:43:59 -04:00
  • 455aa71c19 Hide WAppIcon fields in favor of accessors. Stu Black 2025-09-01 21:20:22 -04:00
  • 18db22063c Hide WDock fields in favor of accessors. Stu Black 2025-08-25 22:46:23 -04:00
  • b4d1dbe953 Hide WApplication fields in favor of accessors. Stu Black 2025-08-24 23:41:16 -04:00
  • 879a766a94 Fix typo in BUILD deps for //wmaker:keybind. migrate-to-bazel Stu Black 2025-02-09 23:26:57 -05:00
  • ff1c9fd9f9 Factor keybind into its own BUILD target (//wmaker:keybind). Stu Black 2025-02-09 23:26:17 -05:00
  • bd8f3c2fd1 Factor notification macros and appearance enum out of WindowMaker.h. Stu Black 2025-02-09 23:17:05 -05:00
  • 16343ec2e0 Factor resources.{h,c} out into //wmaker:resources. Stu Black 2025-02-09 22:25:19 -05:00
  • fc5b1e4d8e Move global variables from WindowMaker.h into //wmaker:globals. Stu Black 2025-02-09 22:16:14 -05:00
  • e08e3058fd Rename global_display to globals. Stu Black 2025-02-09 22:14:54 -05:00
  • 3f9b61fa9d Factor //wmaker/pixmap into a distinct lib. Stu Black 2025-02-09 17:38:33 -05:00
  • 7b67e06b35 Move the global dpy behind a distinct BUILD rule. Stu Black 2025-02-09 16:49:23 -05:00
  • 949ac920ce Factor //wmaker:{cursor,geometry,preferences} into distinct libs. Stu Black 2025-02-09 10:28:29 -05:00
  • 438a45064b Committing the mess I've gotten myself into for backtracking. migrate-to-bazel_refactor-mess-v1 Stu Black 2025-02-09 10:04:14 -05:00
  • 3278af0885 Manually add preprocessor directives required to build against ImageMagick. Stu Black 2025-02-06 13:23:52 -05:00
  • 8814830f89 Fix use of //wrlib:error_code in BUILD definition. trial-rust-in-wrlib Stu Black 2025-01-01 00:10:59 -05:00
  • 3256959257 Use thread-safe wrlib global error state implemented in Rust. Stu Black 2024-12-31 23:26:27 -05:00
  • 639a401f7f Rust impl of global error status for wrlib. Stu Black 2024-12-31 23:21:11 -05:00
  • 0aecec095f Okay, it builds! Stu Black 2024-12-30 22:27:06 -05:00
  • 66e2ade2dc First crack at C<->Rust interaction. Stu Black 2024-12-30 22:00:38 -05:00
  • 81b452fc87 Use pkg_config rules for ImageMagick, too. Stu Black 2024-12-28 21:54:58 -05:00
  • 14c42f4092 Close to getting data file generation working properly. Stu Black 2024-12-17 22:08:36 -05:00
  • 7a5587acce Let's not track MODULE.bazel.lock at least for now. Stu Black 2024-12-17 15:20:35 -05:00
  • 1e17a1c2e6 Imitate most scripted data file generation. Stu Black 2024-12-17 15:10:18 -05:00
  • 8d005d055b Address corner case of stripped output file basename being empty. Stu Black 2024-12-17 15:06:11 -05:00
  • 0c35859424 Do string replacements in WindowMaker with a Python script that we can reuse elsewhere. Stu Black 2024-11-12 10:05:43 -05:00
  • da676c9e9e Add WPrefs Serbian translation to EXTRA_DIST Doug Torrance 2024-11-11 15:25:18 -05:00
  • 4edf589a5b Remove cruft from autogen.sh Doug Torrance 2024-11-11 15:11:03 -05:00
  • 709eec4bce Update autogen.sh so that it can be run from build directory Doug Torrance 2024-11-11 15:09:49 -05:00
  • 8fb7aba384 Start migrating data files to Bazel build. Stu Black 2024-11-10 22:59:13 -05:00
  • b179803c11 Fix spelling errors Jeremy Sowden 2024-11-09 13:51:43 +00:00
  • 5cd40deb20 Add missing Language: headers to PO files Jeremy Sowden 2024-11-09 13:51:42 +00:00
  • 9db1ea580d Ignore wrlib gettext artefacts Jeremy Sowden 2024-11-09 13:51:41 +00:00
  • 9e56f58742 Remove obsolete autoconf macro Jeremy Sowden 2024-11-09 13:51:40 +00:00
  • 86db9b25d3 Tweaks to BUILD files to build on laptop. Stu Black 2024-11-07 21:41:12 -05:00
  • 05b1cbf15f Locate packages with pkg-config (except for ImageMagick). Stu Black 2024-11-02 14:52:07 -04:00
  • 3566bd3a59 Add missing config files (which we are copying from autotools output for now). Stu Black 2024-11-02 13:07:15 -04:00
  • b97c72e7e5 Remove Bazel symlinks and ignore them in the future. Stu Black 2024-11-02 13:02:55 -04:00
  • 20a5e6c38b wmaker builds (but not verified). Stu Black 2024-11-01 08:46:06 -04:00