Changed default WM_NAME. Changed WM_CLASS to

rdesktop/SeamlessRDP. This makes it easier to identify seamless
windows, but also shows a nicer title in kwin when WM_NAME is empty.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1132 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2006-03-15 13:15:51 +00:00
parent bce447b305
commit 0c06b6b1ef

5
xwin.c
View File

@ -3061,14 +3061,15 @@ ui_seamless_create_window(unsigned long id, unsigned long parent, unsigned long
CWBackPixel | CWBackingStore | CWOverrideRedirect | CWColormap | CWBackPixel | CWBackingStore | CWOverrideRedirect | CWColormap |
CWBorderPixel, &attribs); CWBorderPixel, &attribs);
XStoreName(g_display, wnd, "rdesktop-seamless"); XStoreName(g_display, wnd, "SeamlessRDP");
mwm_hide_decorations(wnd); mwm_hide_decorations(wnd);
classhints = XAllocClassHint(); classhints = XAllocClassHint();
if (classhints != NULL) if (classhints != NULL)
{ {
classhints->res_name = classhints->res_class = "rdesktop"; classhints->res_name = "rdesktop";
classhints->res_class = "SeamlessRDP";
XSetClassHint(g_display, wnd, classhints); XSetClassHint(g_display, wnd, classhints);
XFree(classhints); XFree(classhints);
} }