クラス名の修正

This commit is contained in:
2026-01-16 04:17:52 +09:00
parent ff6b1d36b0
commit bfb1a467a4
4 changed files with 16 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
# 0.2.1 (2026/01/16)
* DWMでうまく表示する様に
* あたしのDWMテーマに合わせる
* クラス名の修正
# 0.2.0 (2025/07/07)
* .desktopファイルがなければ、$PATHから実効してみる様に

15
main.c
View File

@@ -17,6 +17,7 @@ Visual *visual;
const char *sofname = "um";
const char *version = "0.2.1";
const char *disname = "Unix Menu";
int main() {
Display *display;
@@ -57,6 +58,20 @@ int main() {
XChangeProperty(display, window, net_wm_window_type, XA_ATOM, 32,
PropModeReplace, (unsigned char *)&dialog, 1);
XStoreName(display, window, disname);
Atom net_wm_name = XInternAtom(display, "_NET_WM_NAME", False);
XChangeProperty(display, window, net_wm_name,
XInternAtom(display, "UTF8_STRING", False), 8,
PropModeReplace, (unsigned char *)disname, strlen(disname));
XClassHint *classHint = XAllocClassHint();
if (classHint) {
classHint->res_name = "um";
classHint->res_class = "UnixMenu";
XSetClassHint(display, window, classHint);
XFree(classHint);
}
XSetWindowBackground(display, window, BGCOL);
XSelectInput(display, window,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 32 KiB