mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
fixed bug with icons of different sizes
made Apply work in window inspector for windows with no WM_CLASS
This commit is contained in:
@@ -1102,7 +1102,8 @@ selectSpecification(WMWidget *bPtr, void *data)
|
||||
char *str;
|
||||
WWindow *wwin = panel->inspected;
|
||||
|
||||
if (bPtr == panel->defaultRb) {
|
||||
|
||||
if (bPtr == panel->defaultRb && (wwin->wm_instance || wwin->wm_class)) {
|
||||
WMSetButtonEnabled(panel->applyBtn, False);
|
||||
} else {
|
||||
WMSetButtonEnabled(panel->applyBtn, True);
|
||||
@@ -1303,9 +1304,6 @@ createInspectorForWindow(WWindow *wwin, int xpos, int ypos,
|
||||
WMSetButtonAction(panel->clsRb, selectSpecification, panel);
|
||||
}
|
||||
|
||||
if (selectedBtn)
|
||||
WMSetButtonSelected(selectedBtn, True);
|
||||
|
||||
|
||||
panel->selWinB = WMCreateCommandButton(panel->specFrm);
|
||||
WMMoveWidget(panel->selWinB, 20, 145-24 - 10);
|
||||
|
||||
Reference in New Issue
Block a user