This is an automated email generated because a ref change occurred in the
git repository for project wmaker-crm.git.
The branch, master has been updated
via c82e6dad5cd2b9813f5df982fe9710429c24e81e (commit)
via 95c68fe26d53f8ebddd046f4c1e3995f24477fa9 (commit)
from 77c3b95fd5a3096a4be6268e40afdb45f8e2095c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c82e6dad5cd2b9813f5df982fe9710429c24e81e
Author: David Maciejak <
david.m...@gmail.com>
Date: Fri, 23 Jan 2026 23:38:32 -0500
URL: <
https://repo.or.cz/wmaker-crm.git/c82e6dad5cd2b981>
wmaker: set the window manager's information
According to EWMH specification, the active window manager is supposed
to set some information. Those can be gathered for example with
'wmctrl -m'.
Before the patch:
$ wmctrl -m
Name: N/A
Class: N/A
PID: N/A
Window manager's "showing the desktop" mode: OFF
After the patch:
$ wmctrl -m
Name: Window Maker 0.96.0
Class: wmaker
PID: 6866
Window manager's "showing the desktop" mode: OFF
---
src/wmspec.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/src/wmspec.c b/src/wmspec.c
index e61e6ae7bfee..fe313410821c 100644
--- a/src/wmspec.c
+++ b/src/wmspec.c
@@ -32,7 +32,9 @@
#include <X11/Xlib.h>
#include <X11/Xatom.h>
+#include <stdio.h>
#include <string.h>
+#include <unistd.h>
#include <WINGs/WUtil.h>
#include "WindowMaker.h"
@@ -274,6 +276,9 @@ static void setSupportedHints(WScreen *scr)
{
Atom atom[wlengthof(atomNames)];
int i = 0;
+ long pid = 0;
+ char wm_name[64] = "";
+ XClassHint *class_hint;
/* set supported hints list */
/* XXX: extend this !!! */
@@ -357,6 +362,25 @@ static void setSupportedHints(WScreen *scr)
XChangeProperty(dpy, scr->info_window, net_supporting_wm_check, XA_WINDOW,
32, PropModeReplace, (unsigned char *)&scr->info_window, 1);
+
+ /* set _NET_WM_NAME on supporting window */
+ snprintf(wm_name, sizeof(wm_name), "Window Maker %s", VERSION);
+ XChangeProperty(dpy, scr->info_window, net_wm_name, utf8_string, 8,
+ PropModeReplace, (unsigned char *)wm_name, strlen(wm_name));
+
+ /* set _NET_WM_PID on supporting window */
+ pid = getpid();
+ XChangeProperty(dpy, scr->info_window, net_wm_pid, XA_CARDINAL, 32,
+ PropModeReplace, (unsigned char *)&pid, 1);
+
+ /* set WM_CLASS on supporting window */
+ class_hint = XAllocClassHint();
+ if (class_hint) {
+ class_hint->res_name = "wmaker";
+ class_hint->res_class = "WindowMaker";
+ XSetClassHint(dpy, scr->info_window, class_hint);
+ XFree(class_hint);
+ }
}
void wNETWMUpdateDesktop(WScreen *scr)
commit 95c68fe26d53f8ebddd046f4c1e3995f24477fa9
Author: David Maciejak <
david.m...@gmail.com>
Date: Fri, 23 Jan 2026 23:10:08 -0500
URL: <
https://repo.or.cz/wmaker-crm.git/95c68fe26d53f8eb>
configure: add optional --enable-native option to compilation flags
This patch adds an option to enable native CPU optimizations
by adding -march=native to the compiler flags, tuning the
generated code for the build machine at the expense of portability.
In some tests, especially on wrlib I saw 8% perf improvement.
Should be used by developers or those who recompile wmaker for their own usage.
---
configure.ac | 17 +++++++++++++++++
doc/build/Compilation.texi | 4 ++++
2 files changed, 21 insertions(+)
diff --git a/
configure.ac b/
configure.ac
index 86ac2a008b42..1d2bbe6e3377 100644
--- a/
configure.ac
+++ b/
configure.ac
@@ -130,6 +130,20 @@ AS_IF([test "x$debug" = "xyes"],
])
+dnl Native CPU Optimizations Option
+dnl =================
+m4_divert_push([INIT_PREPARE])dnl
+AC_ARG_ENABLE([native],
+ [AS_HELP_STRING([--enable-native], [enable native option, @<:@default=no@:>@])],
+ [AS_CASE(["$enableval"],
+ [yes], [native=yes],
+ [no], [native=no],
+ [AC_MSG_ERROR([bad value $enableval for --enable-native])] )],
+ [native=no])
+m4_divert_pop([INIT_PREPARE])dnl
+AS_IF([test "x$native" = "xyes"],
+ [AX_CFLAGS_GCC_OPTION([-march=native])])
+
AX_CFLAGS_GCC_OPTION([-Wall])
AX_CFLAGS_GCC_OPTION([-Wextra -Wno-sign-compare])
dnl
@@ -1037,6 +1051,9 @@ echo "Supported graphic format libraries :$supported_gfx"
echo "Unsupported features :$unsupported"
echo "Pango text layout support in WINGs : $pango"
echo "Translated languages to support :$supported_locales"
+AS_IF([test "x$native" = "xyes"],
+ [AS_ECHO(["Target architecture : native"]) ],
+ [AS_ECHO(["Target architecture : generic"]) ])
AS_IF([test "x$WEB_REPO_ROOT" != "x"],
[AS_ECHO(["Git repository for WMaker's Website : $WEB_REPO_ROOT"]) ])
AS_IF([test "x$debug" = "xyes"],
diff --git a/doc/build/Compilation.texi b/doc/build/Compilation.texi
index 0046384a462e..bd4fc66d30db 100644
--- a/doc/build/Compilation.texi
+++ b/doc/build/Compilation.texi
@@ -651,6 +651,10 @@ appropriate requirements and works with this.
Despite all this, if you think there's a use for it and feel in the mood to help, do not hesitate to
discuss on the mailing list @value{emailsupport} to get it working.
+@item --enable-native
+Enable native CPU optimizations by adding @option{-march=native} to the compiler flags, tuning the
+generated code for the build machine at the expense of portability.
+
@item --with-web-repo=@i{PATH}
Enable generation of HTML documentation to be uploaded to @sc{Window Maker}'s website.
The @file{@i{PATH}} is the directory where you have cloned the homepage's repository.
-----------------------------------------------------------------------
Summary of changes:
configure.ac | 17 +++++++++++++++++
doc/build/Compilation.texi | 4 ++++
src/wmspec.c | 24 ++++++++++++++++++++++++
3 files changed, 45 insertions(+)
repo.or.cz automatic notification. Contact project admin
crm...@gmail.com
if you want to unsubscribe, or site admin
ad...@repo.or.cz if you receive
no reply.
--
wmaker-crm.git ("The Window Maker window manager")