クラス名の修正
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# 0.2.1 (2026/01/16)
|
||||
* DWMでうまく表示する様に
|
||||
* あたしのDWMテーマに合わせる
|
||||
* クラス名の修正
|
||||
|
||||
# 0.2.0 (2025/07/07)
|
||||
* .desktopファイルがなければ、$PATHから実効してみる様に
|
||||
|
||||
15
main.c
15
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,
|
||||
|
||||
BIN
scrot1.png
BIN
scrot1.png
Binary file not shown.
|
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 35 KiB |
BIN
scrot2.png
BIN
scrot2.png
Binary file not shown.
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 32 KiB |
Reference in New Issue
Block a user