mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 22:28:02 +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;
|
panel->flags.dragging = 0;
|
||||||
if (!panel->flags.continuous) {
|
if (!panel->flags.continuous) {
|
||||||
if (panel->action)
|
if (panel->action)
|
||||||
(*panel->action)(panel->action, panel->clientData);
|
(*panel->action)(panel, panel->clientData);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -2946,7 +2946,7 @@ customPaletteHandleActionEvents(XEvent *event, void *data)
|
|||||||
panel->flags.dragging = 0;
|
panel->flags.dragging = 0;
|
||||||
if (!panel->flags.continuous) {
|
if (!panel->flags.continuous) {
|
||||||
if (panel->action)
|
if (panel->action)
|
||||||
(*panel->action)(panel->action, panel->clientData);
|
(*panel->action)(panel, panel->clientData);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -1979,7 +1979,7 @@ storeData(_Panel *panel)
|
|||||||
|
|
||||||
for (i = 0; i < 8; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
SetStringForKey(WMGetColorRGBDescription(panel->colors[i]),
|
SetStringForKey(WMGetColorRGBDescription(panel->colors[i]),
|
||||||
colorOptions[i]);
|
colorOptions[i*2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (panel->menuStyle) {
|
switch (panel->menuStyle) {
|
||||||
|
|||||||
Reference in New Issue
Block a user