Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhonghuaren
lwm
lwm-1.2.4.git.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lwm-1.2.4.git.patch of Package lwm
diff -Nur lwm-1.2.4.orig/lwm.c lwm-1.2.4/lwm.c --- lwm-1.2.4.orig/lwm.c 2016-02-13 01:45:44.000000000 +0800 +++ lwm-1.2.4/lwm.c 2016-05-13 15:47:05.000000000 +0800 @@ -87,6 +87,8 @@ mode = wm_initialising; + setlocale(LC_ALL, ""); + /* Open a connection to the X server. */ dpy = XOpenDisplay(NULL); if (dpy == 0) diff -Nur lwm-1.2.4.orig/lwm.man lwm-1.2.4/lwm.man --- lwm-1.2.4.orig/lwm.man 2016-02-13 01:45:44.000000000 +0800 +++ lwm-1.2.4/lwm.man 2016-05-13 15:47:05.000000000 +0800 @@ -70,7 +70,7 @@ .SH RESOURCES \fILwm\fP understands the following X resources: .TP 12 -.B titlefont +.B titleFont font used in window titles .TP 12 .B popupFont diff -Nur lwm-1.2.4.orig/manage.c lwm-1.2.4/manage.c --- lwm-1.2.4.orig/manage.c 2016-02-13 01:45:44.000000000 +0800 +++ lwm-1.2.4/manage.c 2016-05-13 15:47:05.000000000 +0800 @@ -493,21 +493,22 @@ was_nameless = (c->name == 0); - if (ewmh_get_window_name(c) == False && - XGetWindowProperty(dpy, c->window, _mozilla_url, 0L, 100L, False, AnyPropertyType, &actual_type, &format, &n, &extra, (unsigned char **) &name) == Success && name && *name != '\0' && n != 0) { - Client_Name(c, name, False); - XFree(name); - } else if (XGetWindowProperty(dpy, c->window, XA_WM_NAME, 0L, 100L, False, AnyPropertyType, &actual_type, &format, &n, &extra, (unsigned char **) &name) == Success && name && *name != '\0' && n != 0) { - /* That rather unpleasant condition is necessary because xwsh uses - * COMPOUND_TEXT rather than STRING for its WM_NAME property, - * and anonymous xwsh windows are annoying. - */ - if (actual_type == compound_text && memcmp(name, "\x1b\x28\x42", 3) == 0) { - Client_Name(c, name + 3, False); - } else { + if (ewmh_get_window_name(c) == False) { + if (XGetWindowProperty(dpy, c->window, _mozilla_url, 0L, 100L, False, AnyPropertyType, &actual_type, &format, &n, &extra, (unsigned char **) &name) == Success && name && *name != '\0' && n != 0) { Client_Name(c, name, False); + XFree(name); + } else if (XGetWindowProperty(dpy, c->window, XA_WM_NAME, 0L, 100L, False, AnyPropertyType, &actual_type, &format, &n, &extra, (unsigned char **) &name) == Success && name && *name != '\0' && n != 0) { + /* That rather unpleasant condition is necessary because xwsh uses + * COMPOUND_TEXT rather than STRING for its WM_NAME property, + * and anonymous xwsh windows are annoying. + */ + if (actual_type == compound_text && memcmp(name, "\x1b\x28\x42", 3) == 0) { + Client_Name(c, name + 3, False); + } else { + Client_Name(c, name, False); + } + XFree(name); } - XFree(name); } if (!was_nameless)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor