mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-14 12:55:47 +01:00
GNOME mouseclickproxy thing fix
added WorkspaceNameDisplayPosition balloon updates bug fixes
This commit is contained in:
@@ -285,7 +285,7 @@ WMSetButtonImage(WMButton *bPtr, WMPixmap *image)
|
||||
|
||||
if (image) {
|
||||
bPtr->dimage = WMCreatePixmapFromXPixmaps(WMWidgetScreen(bPtr),
|
||||
image->pixmap, None,
|
||||
image->pixmap, None,
|
||||
image->width, image->height,
|
||||
image->depth);
|
||||
updateDisabledMask(bPtr);
|
||||
@@ -554,7 +554,7 @@ paintButton(Button *bPtr)
|
||||
|
||||
gc = NULL;
|
||||
caption = bPtr->caption;
|
||||
if (bPtr->flags.enabled)
|
||||
if (bPtr->flags.enabled || !bPtr->dimage)
|
||||
image = bPtr->image;
|
||||
else
|
||||
image = bPtr->dimage;
|
||||
@@ -575,13 +575,13 @@ paintButton(Button *bPtr)
|
||||
if (bPtr->altImage)
|
||||
image = bPtr->altImage;
|
||||
}
|
||||
|
||||
|
||||
if (bPtr->flags.statePush && bPtr->flags.bordered) {
|
||||
relief = WRSunken;
|
||||
offset = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (bPtr->flags.pushed) {
|
||||
if (bPtr->flags.pushIn) {
|
||||
relief = WRPushed;
|
||||
@@ -589,7 +589,7 @@ paintButton(Button *bPtr)
|
||||
}
|
||||
if (bPtr->flags.pushLight)
|
||||
gc = WMColorGC(scrPtr->white);
|
||||
|
||||
|
||||
if (bPtr->flags.pushChange) {
|
||||
if (bPtr->altCaption) {
|
||||
caption = bPtr->altCaption;
|
||||
|
||||
Reference in New Issue
Block a user