mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
- Fixed all // comments
- Final cleanups
This commit is contained in:
2
BUGS
2
BUGS
@@ -7,8 +7,6 @@ Newly added
|
|||||||
- wmaker will not stop managing a screen even if another window manager
|
- wmaker will not stop managing a screen even if another window manager
|
||||||
requests that, through the ICCCM 2.0 manager selection stuff
|
requests that, through the ICCCM 2.0 manager selection stuff
|
||||||
- stacking code is buggy (or XFree is buggy)
|
- stacking code is buggy (or XFree is buggy)
|
||||||
- after restart focus is losed or switched to another window. May be related
|
|
||||||
to the one above.
|
|
||||||
- save session doesnt work on some platforms (Alpha and Sparc)
|
- save session doesnt work on some platforms (Alpha and Sparc)
|
||||||
- texture pixmaps are being incorrectly freed somewhere. Either
|
- texture pixmaps are being incorrectly freed somewhere. Either
|
||||||
fix bug (to support broken MetroX servers) or remove all useless references
|
fix bug (to support broken MetroX servers) or remove all useless references
|
||||||
|
|||||||
@@ -732,8 +732,6 @@ void WMSetViewDragDestinationProcs(WMView *view, WMDragDestinationProcs *procs);
|
|||||||
|
|
||||||
/* ....................................................................... */
|
/* ....................................................................... */
|
||||||
|
|
||||||
//Bool WMHasAntialiasingSupport(WMScreen *scrPtr);
|
|
||||||
|
|
||||||
Bool WMIsAntialiasingEnabled(WMScreen *scrPtr);
|
Bool WMIsAntialiasingEnabled(WMScreen *scrPtr);
|
||||||
|
|
||||||
/* ....................................................................... */
|
/* ....................................................................... */
|
||||||
|
|||||||
@@ -130,31 +130,6 @@ struct W_DraggingInfo {
|
|||||||
W_DragDestinationInfo* destInfo; /* infos needed by destination */
|
W_DragDestinationInfo* destInfo; /* infos needed by destination */
|
||||||
} W_DraggingInfo;
|
} W_DraggingInfo;
|
||||||
|
|
||||||
/* original
|
|
||||||
struct W_DraggingInfo {
|
|
||||||
Window destinationWindow;
|
|
||||||
Window sourceWindow;
|
|
||||||
|
|
||||||
WMPoint location;
|
|
||||||
|
|
||||||
unsigned sourceOperation;
|
|
||||||
WMPixmap *image;
|
|
||||||
WMPoint imageLocation;
|
|
||||||
|
|
||||||
char **types;
|
|
||||||
|
|
||||||
Time timestamp;
|
|
||||||
|
|
||||||
int protocolVersion;
|
|
||||||
|
|
||||||
// should be treated as internal data
|
|
||||||
WMView *sourceView;
|
|
||||||
WMView *destView;
|
|
||||||
WMSize mouseOffset;
|
|
||||||
unsigned finished:1;
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct W_Screen {
|
typedef struct W_Screen {
|
||||||
Display *display;
|
Display *display;
|
||||||
|
|||||||
@@ -176,8 +176,8 @@ sendTimeout(void *cdata)
|
|||||||
clearOutputQueue(cPtr);
|
clearOutputQueue(cPtr);
|
||||||
cPtr->state = WCTimedOut;
|
cPtr->state = WCTimedOut;
|
||||||
cPtr->timeoutState = WCTWhileSending;
|
cPtr->timeoutState = WCTWhileSending;
|
||||||
// should we close it no matter what (after calling the didTimeout
|
/* // should we close it no matter what (after calling the didTimeout
|
||||||
// delegate)? -Dan
|
// delegate)? -Dan */
|
||||||
if (cPtr->delegate && cPtr->delegate->didTimeout) {
|
if (cPtr->delegate && cPtr->delegate->didTimeout) {
|
||||||
(*cPtr->delegate->didTimeout)(cPtr->delegate, cPtr);
|
(*cPtr->delegate->didTimeout)(cPtr->delegate, cPtr);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -425,8 +425,9 @@ sendEnterMessage(WMDraggingInfo *info)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
// this functon doesn't return something in all cases.
|
// this functon doesn't return something in all cases.
|
||||||
// control reaches end of non-void function. fix this -Dan
|
// control reaches end of non-void function. fix this -Dan */
|
||||||
static Bool
|
static Bool
|
||||||
sendPositionMessage(WMDraggingInfo *info, WMPoint *mousePos)
|
sendPositionMessage(WMDraggingInfo *info, WMPoint *mousePos)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ WMInitializeApplication(char *applicationName, int *argc, char **argv)
|
|||||||
assert(argv!=NULL);
|
assert(argv!=NULL);
|
||||||
assert(applicationName!=NULL);
|
assert(applicationName!=NULL);
|
||||||
|
|
||||||
/* // TODO: check if to move inside #ifdef I18N */
|
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
|
|
||||||
#ifdef I18N
|
#ifdef I18N
|
||||||
|
|||||||
@@ -374,7 +374,7 @@ WMSetFontPanelFont(WMFontPanel *panel, char *fontName)
|
|||||||
} else {
|
} else {
|
||||||
/* maybe its proper xlfd and we can convert it to an FcPattern */
|
/* maybe its proper xlfd and we can convert it to an FcPattern */
|
||||||
pattern = XftXlfdParse(fontName, False, False);
|
pattern = XftXlfdParse(fontName, False, False);
|
||||||
//FcPatternPrint(pattern);
|
/*//FcPatternPrint(pattern);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!pattern)
|
if (!pattern)
|
||||||
|
|||||||
@@ -4019,7 +4019,7 @@ WMGetTextSelectionFont(WMText *tPtr)
|
|||||||
void
|
void
|
||||||
WMSetTextSelectionUnderlined(WMText *tPtr, int underlined)
|
WMSetTextSelectionUnderlined(WMText *tPtr, int underlined)
|
||||||
{
|
{
|
||||||
// check this
|
/* // check this */
|
||||||
if (underlined!=0 && underlined!=1)
|
if (underlined!=0 && underlined!=1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
@@ -408,7 +408,7 @@ createPanel(Panel *p)
|
|||||||
"for actions like shading and closing a window.\n"
|
"for actions like shading and closing a window.\n"
|
||||||
"You will need a module distributed separately\n"
|
"You will need a module distributed separately\n"
|
||||||
"for this. You can get it at:\n"
|
"for this. You can get it at:\n"
|
||||||
"http://shadowmere.student.utwente.nl/"),
|
"http://largo.windowmaker.org/files.php#WSoundServer"),
|
||||||
WMWidgetView(panel->sfxB));
|
WMWidgetView(panel->sfxB));
|
||||||
|
|
||||||
panel->noteL = WMCreateLabel(panel->animF);
|
panel->noteL = WMCreateLabel(panel->animF);
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ showData(_Panel *panel)
|
|||||||
WMSetButtonSelected(panel->swi[3], GetBoolForKey("UseSaveUnders"));
|
WMSetButtonSelected(panel->swi[3], GetBoolForKey("UseSaveUnders"));
|
||||||
WMSetButtonSelected(panel->swi[4], GetBoolForKey("DontConfirmKill"));
|
WMSetButtonSelected(panel->swi[4], GetBoolForKey("DontConfirmKill"));
|
||||||
WMSetButtonSelected(panel->swi[5], GetBoolForKey("DisableBlinking"));
|
WMSetButtonSelected(panel->swi[5], GetBoolForKey("DisableBlinking"));
|
||||||
//if (WMHasAntialiasingSupport(WMWidgetScreen(panel->box)))
|
|
||||||
WMSetButtonSelected(panel->swi[6], GetBoolForKey("AntialiasedText"));
|
WMSetButtonSelected(panel->swi[6], GetBoolForKey("AntialiasedText"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,7 +80,6 @@ createPanel(Panel *p)
|
|||||||
WMSetButtonText(panel->swi[5], _("Disable selection animation for selected icons."));
|
WMSetButtonText(panel->swi[5], _("Disable selection animation for selected icons."));
|
||||||
WMSetButtonText(panel->swi[6], _("Smooth font edges (needs restart)."));
|
WMSetButtonText(panel->swi[6], _("Smooth font edges (needs restart)."));
|
||||||
|
|
||||||
//if (!WMHasAntialiasingSupport(WMWidgetScreen(panel->box)))
|
|
||||||
WMSetButtonEnabled(panel->swi[6], True);
|
WMSetButtonEnabled(panel->swi[6], True);
|
||||||
|
|
||||||
WMRealizeWidget(panel->box);
|
WMRealizeWidget(panel->box);
|
||||||
@@ -104,7 +102,6 @@ storeDefaults(_Panel *panel)
|
|||||||
SetBoolForKey(WMGetButtonSelected(panel->swi[3]), "UseSaveUnders");
|
SetBoolForKey(WMGetButtonSelected(panel->swi[3]), "UseSaveUnders");
|
||||||
SetBoolForKey(WMGetButtonSelected(panel->swi[4]), "DontConfirmKill");
|
SetBoolForKey(WMGetButtonSelected(panel->swi[4]), "DontConfirmKill");
|
||||||
SetBoolForKey(WMGetButtonSelected(panel->swi[5]), "DisableBlinking");
|
SetBoolForKey(WMGetButtonSelected(panel->swi[5]), "DisableBlinking");
|
||||||
//if (WMHasAntialiasingSupport(WMWidgetScreen(panel->box)))
|
|
||||||
SetBoolForKey(WMGetButtonSelected(panel->swi[6]), "AntialiasedText");
|
SetBoolForKey(WMGetButtonSelected(panel->swi[6]), "AntialiasedText");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -478,7 +478,7 @@ selectedOption(WMWidget *w, void *data)
|
|||||||
name= "sans serif";
|
name= "sans serif";
|
||||||
|
|
||||||
found= 0;
|
found= 0;
|
||||||
// select family
|
/* select family */
|
||||||
for (i= 0; i < WMGetListNumberOfRows(panel->familyL); i++)
|
for (i= 0; i < WMGetListNumberOfRows(panel->familyL); i++)
|
||||||
{
|
{
|
||||||
WMListItem *item= WMGetListItem(panel->familyL, i);
|
WMListItem *item= WMGetListItem(panel->familyL, i);
|
||||||
@@ -496,7 +496,7 @@ selectedOption(WMWidget *w, void *data)
|
|||||||
WMSelectListItem(panel->familyL, -1);
|
WMSelectListItem(panel->familyL, -1);
|
||||||
selectedFamily(panel->familyL, panel);
|
selectedFamily(panel->familyL, panel);
|
||||||
|
|
||||||
// select style
|
/* select style */
|
||||||
if (FcPatternGetInteger(pat, FC_WEIGHT, 0, &weight) != FcResultMatch)
|
if (FcPatternGetInteger(pat, FC_WEIGHT, 0, &weight) != FcResultMatch)
|
||||||
weight= FC_WEIGHT_NORMAL;
|
weight= FC_WEIGHT_NORMAL;
|
||||||
if (FcPatternGetInteger(pat, FC_WIDTH, 0, &width) != FcResultMatch)
|
if (FcPatternGetInteger(pat, FC_WIDTH, 0, &width) != FcResultMatch)
|
||||||
@@ -681,7 +681,7 @@ createPanel(Panel *p)
|
|||||||
label = createListLabel(scr, vbox, _("Family"));
|
label = createListLabel(scr, vbox, _("Family"));
|
||||||
WMAddBoxSubview(vbox, WMWidgetView(label), False, True, 20, 0, 2);
|
WMAddBoxSubview(vbox, WMWidgetView(label), False, True, 20, 0, 2);
|
||||||
|
|
||||||
// family
|
/* family */
|
||||||
panel->familyL = WMCreateList(vbox);
|
panel->familyL = WMCreateList(vbox);
|
||||||
WMAddBoxSubview(vbox, WMWidgetView(panel->familyL), True, True, 0, 0, 0);
|
WMAddBoxSubview(vbox, WMWidgetView(panel->familyL), True, True, 0, 0, 0);
|
||||||
if (panel->fonts)
|
if (panel->fonts)
|
||||||
|
|||||||
@@ -338,10 +338,10 @@ paintClipButtons(WAppIcon *clipIcon, Bool lpushed, Bool rpushed)
|
|||||||
Bool collapsed = clipIcon->dock->collapsed;
|
Bool collapsed = clipIcon->dock->collapsed;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//if (!clipIcon->dock->collapsed)
|
/*if (!clipIcon->dock->collapsed)
|
||||||
// color = scr->clip_title_color[CLIP_NORMAL];
|
color = scr->clip_title_color[CLIP_NORMAL];
|
||||||
//else
|
else
|
||||||
// color = scr->clip_title_color[CLIP_COLLAPSED];
|
color = scr->clip_title_color[CLIP_COLLAPSED];*/
|
||||||
color = scr->clip_title_color[CLIP_NORMAL];
|
color = scr->clip_title_color[CLIP_NORMAL];
|
||||||
|
|
||||||
XSetForeground(dpy, gc, WMColorPixel(color));
|
XSetForeground(dpy, gc, WMColorPixel(color));
|
||||||
|
|||||||
@@ -894,7 +894,7 @@ wManageWindow(WScreen *scr, Window window)
|
|||||||
|
|
||||||
#define ADEQUATE(x) ((x)!=None && (x)!=wwin->client_win && (x)!=fPtr->leader)
|
#define ADEQUATE(x) ((x)!=None && (x)!=wwin->client_win && (x)!=fPtr->leader)
|
||||||
|
|
||||||
// only enter here if PropGetWMClass() succeds
|
/* // only enter here if PropGetWMClass() succeds */
|
||||||
PropGetWMClass(wwin->main_window, &class, &instance);
|
PropGetWMClass(wwin->main_window, &class, &instance);
|
||||||
buffer = StrConcatDot(instance, class);
|
buffer = StrConcatDot(instance, class);
|
||||||
|
|
||||||
|
|||||||
@@ -944,7 +944,7 @@ getWindowLayer(WWindow * wwin)
|
|||||||
layer = WMFullscreenLevel;
|
layer = WMFullscreenLevel;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//layer = WMPopUpLevel;
|
/* //layer = WMPopUpLevel; // this seems a bad idea -Dan */
|
||||||
} else if (wwin->type == net_wm_window_type_normal) {
|
} else if (wwin->type == net_wm_window_type_normal) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1157,8 +1157,10 @@ handleWindowType(WWindow * wwin, Atom type, int *layer)
|
|||||||
wwin->client_flags.no_appicon = 1;
|
wwin->client_flags.no_appicon = 1;
|
||||||
wwin->flags.net_skip_pager = 1;
|
wwin->flags.net_skip_pager = 1;
|
||||||
} else if (type == net_wm_window_type_dialog) {
|
} else if (type == net_wm_window_type_dialog) {
|
||||||
|
/* These also seem a bad idea in our context -Dan
|
||||||
// wwin->client_flags.skip_window_list = 1;
|
// wwin->client_flags.skip_window_list = 1;
|
||||||
// wwin->client_flags.no_appicon = 1;
|
// wwin->client_flags.no_appicon = 1;
|
||||||
|
*/
|
||||||
} else if (type == net_wm_window_type_normal) {
|
} else if (type == net_wm_window_type_normal) {
|
||||||
} else {
|
} else {
|
||||||
ret = False;
|
ret = False;
|
||||||
|
|||||||
@@ -236,9 +236,9 @@ wGetHeadForWindow(WWindow *wwin)
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
int
|
int
|
||||||
wGetHeadForPoint(WScreen *scr, WMPoint point, int *flags)
|
wGetHeadForPoint(WScreen *scr, WMPoint point, int *flags)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
// paranoia
|
// paranoia
|
||||||
@@ -249,7 +249,7 @@ wGetHeadForWindow(WWindow *wwin)
|
|||||||
*flags = XFLAG_NONE;
|
*flags = XFLAG_NONE;
|
||||||
|
|
||||||
for (i = 0; i < scr->xine_info.count; i++) {
|
for (i = 0; i < scr->xine_info.count; i++) {
|
||||||
#if 0
|
#if 0
|
||||||
int yy, xx;
|
int yy, xx;
|
||||||
|
|
||||||
xx = scr->xine_info.screens[i].pos.x + scr->xine_info.screens[i].size.width;
|
xx = scr->xine_info.screens[i].pos.x + scr->xine_info.screens[i].size.width;
|
||||||
@@ -259,20 +259,20 @@ wGetHeadForWindow(WWindow *wwin)
|
|||||||
point.x < xx && point.y < yy) {
|
point.x < xx && point.y < yy) {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
XineramaScreenInfo *xsi = &scr->xine_info.screens[i];
|
XineramaScreenInfo *xsi = &scr->xine_info.screens[i];
|
||||||
|
|
||||||
if ((unsigned)(point.x - xsi->x_org) < xsi->width &&
|
if ((unsigned)(point.x - xsi->x_org) < xsi->width &&
|
||||||
(unsigned)(point.y - xsi->y_org) < xsi->height)
|
(unsigned)(point.y - xsi->y_org) < xsi->height)
|
||||||
return i;
|
return i;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
*flags |= XFLAG_DEAD;
|
*flags |= XFLAG_DEAD;
|
||||||
|
|
||||||
return scr->xine_primary_head;
|
return scr->xine_primary_head;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ print_help()
|
|||||||
puts("");
|
puts("");
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace --sets-too with something better
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -495,7 +495,6 @@ parseTexture(RContext *rc, char *text)
|
|||||||
XColor color;
|
XColor color;
|
||||||
Pixmap pixmap = None;
|
Pixmap pixmap = None;
|
||||||
RImage *image = NULL;
|
RImage *image = NULL;
|
||||||
//int w, h;
|
|
||||||
int iwidth, iheight;
|
int iwidth, iheight;
|
||||||
RColor rcolor;
|
RColor rcolor;
|
||||||
|
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ clipLineInRectangle(int xmin, int ymin, int xmax, int ymax,
|
|||||||
} else if (ocode & RIG) {
|
} else if (ocode & RIG) {
|
||||||
y = *y1 + (*y2 - *y1) * (xmax - *x1) / (*x2 - *x1);
|
y = *y1 + (*y2 - *y1) * (xmax - *x1) / (*x2 - *x1);
|
||||||
x = xmax;
|
x = xmax;
|
||||||
} else { //if (ocode & LEF) {
|
} else { /* //if (ocode & LEF) { */
|
||||||
y = *y1 + (*y2 - *y1) * (xmax - *x1) / (*x2 - *x1);
|
y = *y1 + (*y2 - *y1) * (xmax - *x1) / (*x2 - *x1);
|
||||||
x = xmin;
|
x = xmin;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user