summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/button.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mir_app/src/button.cpp b/src/mir_app/src/button.cpp
index a406d172c0..907cd73de3 100644
--- a/src/mir_app/src/button.cpp
+++ b/src/mir_app/src/button.cpp
@@ -422,16 +422,13 @@ static LRESULT CALLBACK MButtonWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR
case BUTTONSETARROW: // turn arrow on/off
if (wParam) {
- if (!bct->arrow) {
+ if (!bct->arrow)
bct->arrow = Skin_LoadIcon(SKINICON_OTHER_DOWNARROW);
- SetHwndPropInt(bct, OBJID_CLIENT, CHILDID_SELF, PROPID_ACC_ROLE, ROLE_SYSTEM_BUTTONDROPDOWN);
- }
}
else {
if (bct->arrow) {
IcoLib_ReleaseIcon(bct->arrow);
bct->arrow = NULL;
- SetHwndPropInt(bct, OBJID_CLIENT, CHILDID_SELF, PROPID_ACC_ROLE, ROLE_SYSTEM_PUSHBUTTON);
}
}
InvalidateRect(bct->hwnd, NULL, TRUE);