From d2b11eec4c87f6a778adde794759bf8cba0e26dc Mon Sep 17 00:00:00 2001 From: Window Maker Date: Sun, 24 May 2026 11:01:50 +0200 Subject: [PATCH] =?UTF-8?q?wings:=20phase=20=CE=B3=20=E2=80=94=20rename=20?= =?UTF-8?q?X11-only=20files=20to=20*=5Fx11.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mechanical rename to make architectural intent visible: dragsource.c → dragsource_x11.c dragdestination.c → dragdestination_x11.c selection.c → selection_x11.c winputmethod.c → winputmethod_x11.c wballoon.c → wballoon_x11.c wappresource.c → wappresource_x11.c Each is essentially a wrapper around X11 features (XDND, X11 selection, XIM, XShape, X11 WM hints) with no Wayland equivalent yet. These files keep providing their public WINGs API symbols unchanged, so build+link is identical at this point. A future commit will add Wayland counterparts (or no-op stubs) and wire a configure option that conditionally excludes *_x11.c when the build is Wayland-client-only. Doing this now would force a choice between linkable but Wayland-broken (no stubs) or partial double-implementation (some functions stubbed); the right answer needs vtable dispatchers in shared *.c files for each, which is the next round of surgery. --- WINGs/Makefile.am | 12 ++++++------ WINGs/{dragdestination.c => dragdestination_x11.c} | 0 WINGs/{dragsource.c => dragsource_x11.c} | 0 WINGs/{selection.c => selection_x11.c} | 0 WINGs/{wappresource.c => wappresource_x11.c} | 0 WINGs/{wballoon.c => wballoon_x11.c} | 0 WINGs/{winputmethod.c => winputmethod_x11.c} | 0 7 files changed, 6 insertions(+), 6 deletions(-) rename WINGs/{dragdestination.c => dragdestination_x11.c} (100%) rename WINGs/{dragsource.c => dragsource_x11.c} (100%) rename WINGs/{selection.c => selection_x11.c} (100%) rename WINGs/{wappresource.c => wappresource_x11.c} (100%) rename WINGs/{wballoon.c => wballoon_x11.c} (100%) rename WINGs/{winputmethod.c => winputmethod_x11.c} (100%) diff --git a/WINGs/Makefile.am b/WINGs/Makefile.am index d3c9a13..96f6d79 100644 --- a/WINGs/Makefile.am +++ b/WINGs/Makefile.am @@ -29,12 +29,12 @@ libWINGs_la_SOURCES = \ configuration.c \ dragcommon.c \ dragcommon_x11.c \ - dragdestination.c \ - dragsource.c \ + dragdestination_x11.c \ + dragsource_x11.c \ rgb.h \ - selection.c \ - wappresource.c \ - wballoon.c \ + selection_x11.c \ + wappresource_x11.c \ + wballoon_x11.c \ wbox.c \ wbrowser.c \ wbutton.c \ @@ -55,7 +55,7 @@ libWINGs_la_SOURCES = \ wfontpanel.c \ widgets.c \ widgets_x11.c \ - winputmethod.c \ + winputmethod_x11.c \ wlabel.c \ wlist.c \ wmenuitem.c \ diff --git a/WINGs/dragdestination.c b/WINGs/dragdestination_x11.c similarity index 100% rename from WINGs/dragdestination.c rename to WINGs/dragdestination_x11.c diff --git a/WINGs/dragsource.c b/WINGs/dragsource_x11.c similarity index 100% rename from WINGs/dragsource.c rename to WINGs/dragsource_x11.c diff --git a/WINGs/selection.c b/WINGs/selection_x11.c similarity index 100% rename from WINGs/selection.c rename to WINGs/selection_x11.c diff --git a/WINGs/wappresource.c b/WINGs/wappresource_x11.c similarity index 100% rename from WINGs/wappresource.c rename to WINGs/wappresource_x11.c diff --git a/WINGs/wballoon.c b/WINGs/wballoon_x11.c similarity index 100% rename from WINGs/wballoon.c rename to WINGs/wballoon_x11.c diff --git a/WINGs/winputmethod.c b/WINGs/winputmethod_x11.c similarity index 100% rename from WINGs/winputmethod.c rename to WINGs/winputmethod_x11.c