summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2012-07-22 16:15:12 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-08-03 22:47:14 +0100
commita07541f1ffc28c57a762beefb96c7bf0ac40b0a4 (patch)
tree7f6f0d13cb4970508a8a9dfa21a732bbdf700ba6
parent2a47c91eb382d1ff0fb009a39efa7dc9c6fd5112 (diff)
hw/xwin: Rename WM_WM_HINTS_EVENT to WM_WM_ICON_EVENT
WM_WM_HINTS_EVENT only updates the icon, so rename it to WM_WM_ICON_EVENT Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
-rw-r--r--hw/xwin/winmultiwindowwm.c4
-rw-r--r--hw/xwin/winwindow.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/hw/xwin/winmultiwindowwm.c b/hw/xwin/winmultiwindowwm.c
index 754b53036..c30efa90e 100644
--- a/hw/xwin/winmultiwindowwm.c
+++ b/hw/xwin/winmultiwindowwm.c
@@ -769,7 +769,7 @@ winMultiWindowWMProc(void *pArg)
UpdateName(pWMInfo, pNode->msg.iWindow);
break;
- case WM_WM_HINTS_EVENT:
+ case WM_WM_ICON_EVENT:
winUpdateIcon(pNode->msg.iWindow);
break;
@@ -1087,7 +1087,7 @@ winMultiWindowXMsgProc(void *pArg)
&& event.xproperty.atom == atmWmHints) {
memset(&msg, 0, sizeof(msg));
- msg.msg = WM_WM_HINTS_EVENT;
+ msg.msg = WM_WM_ICON_EVENT;
msg.iWindow = event.xproperty.window;
/* Other fields ignored */
diff --git a/hw/xwin/winwindow.h b/hw/xwin/winwindow.h
index c357f8d08..9f2ab45f3 100644
--- a/hw/xwin/winwindow.h
+++ b/hw/xwin/winwindow.h
@@ -115,7 +115,7 @@ typedef struct _winWMMessageRec {
#define WM_WM_KILL (WM_USER + 7)
#define WM_WM_ACTIVATE (WM_USER + 8)
#define WM_WM_NAME_EVENT (WM_USER + 9)
-#define WM_WM_HINTS_EVENT (WM_USER + 10)
+#define WM_WM_ICON_EVENT (WM_USER + 10)
#define WM_WM_CHANGE_STATE (WM_USER + 11)
#define WM_WM_MAP2 (WM_USER + 12)
#define WM_WM_MAP3 (WM_USER + 13)