diff --git a/CHANGELOG.md b/CHANGELOG.md index de9eec3..8566bc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # 0.2.1 (2026/01/16) * DWMでうまく表示する様に * あたしのDWMテーマに合わせる +* クラス名の修正 # 0.2.0 (2025/07/07) * .desktopファイルがなければ、$PATHから実効してみる様に diff --git a/main.c b/main.c index a6d768e..da8eed4 100644 --- a/main.c +++ b/main.c @@ -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, diff --git a/scrot1.png b/scrot1.png index 9aac1b8..9f8bd2b 100755 Binary files a/scrot1.png and b/scrot1.png differ diff --git a/scrot2.png b/scrot2.png index 3a6b21f..4b7ee1b 100755 Binary files a/scrot2.png and b/scrot2.png differ