クラス名の修正
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# 0.2.1 (2026/01/16)
|
# 0.2.1 (2026/01/16)
|
||||||
* DWMでうまく表示する様に
|
* DWMでうまく表示する様に
|
||||||
* あたしのDWMテーマに合わせる
|
* あたしのDWMテーマに合わせる
|
||||||
|
* クラス名の修正
|
||||||
|
|
||||||
# 0.2.0 (2025/07/07)
|
# 0.2.0 (2025/07/07)
|
||||||
* .desktopファイルがなければ、$PATHから実効してみる様に
|
* .desktopファイルがなければ、$PATHから実効してみる様に
|
||||||
|
|||||||
15
main.c
15
main.c
@@ -17,6 +17,7 @@ Visual *visual;
|
|||||||
|
|
||||||
const char *sofname = "um";
|
const char *sofname = "um";
|
||||||
const char *version = "0.2.1";
|
const char *version = "0.2.1";
|
||||||
|
const char *disname = "Unix Menu";
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
Display *display;
|
Display *display;
|
||||||
@@ -57,6 +58,20 @@ int main() {
|
|||||||
XChangeProperty(display, window, net_wm_window_type, XA_ATOM, 32,
|
XChangeProperty(display, window, net_wm_window_type, XA_ATOM, 32,
|
||||||
PropModeReplace, (unsigned char *)&dialog, 1);
|
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);
|
XSetWindowBackground(display, window, BGCOL);
|
||||||
|
|
||||||
XSelectInput(display, window,
|
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