mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 14:42:29 +01:00
Fixed crashing bugs in color panel, and a bug in wprefs.app
This commit is contained in:
@@ -2110,7 +2110,7 @@ wheelHandleActionEvents(XEvent *event, void *data)
|
||||
panel->flags.dragging = 0;
|
||||
if (!panel->flags.continuous) {
|
||||
if (panel->action)
|
||||
(*panel->action)(panel->action, panel->clientData);
|
||||
(*panel->action)(panel, panel->clientData);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -2946,7 +2946,7 @@ customPaletteHandleActionEvents(XEvent *event, void *data)
|
||||
panel->flags.dragging = 0;
|
||||
if (!panel->flags.continuous) {
|
||||
if (panel->action)
|
||||
(*panel->action)(panel->action, panel->clientData);
|
||||
(*panel->action)(panel, panel->clientData);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@@ -1979,7 +1979,7 @@ storeData(_Panel *panel)
|
||||
|
||||
for (i = 0; i < 8; i++) {
|
||||
SetStringForKey(WMGetColorRGBDescription(panel->colors[i]),
|
||||
colorOptions[i]);
|
||||
colorOptions[i*2]);
|
||||
}
|
||||
|
||||
switch (panel->menuStyle) {
|
||||
|
||||
Reference in New Issue
Block a user