make handle_client_message not return anything

The function returned an int for historical reasons.
This commit is contained in:
Michael Stapelberg 2011-10-09 22:15:21 +01:00
parent d1d4f39f9e
commit c812cdcf9a
1 changed files with 5 additions and 7 deletions

View File

@ -2,7 +2,7 @@
* vim:ts=4:sw=4:expandtab * vim:ts=4:sw=4:expandtab
* *
* i3 - an improved dynamic tiling window manager * i3 - an improved dynamic tiling window manager
* © 2009-2010 Michael Stapelberg and contributors (see also: LICENSE) * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE)
* *
*/ */
#include <time.h> #include <time.h>
@ -627,20 +627,20 @@ static int handle_expose_event(xcb_expose_event_t *event) {
* Handle client messages (EWMH) * Handle client messages (EWMH)
* *
*/ */
static int handle_client_message(xcb_client_message_event_t *event) { static void handle_client_message(xcb_client_message_event_t *event) {
LOG("ClientMessage for window 0x%08x\n", event->window); LOG("ClientMessage for window 0x%08x\n", event->window);
if (event->type == A__NET_WM_STATE) { if (event->type == A__NET_WM_STATE) {
if (event->format != 32 || event->data.data32[1] != A__NET_WM_STATE_FULLSCREEN) { if (event->format != 32 || event->data.data32[1] != A__NET_WM_STATE_FULLSCREEN) {
DLOG("atom in clientmessage is %d, fullscreen is %d\n", DLOG("atom in clientmessage is %d, fullscreen is %d\n",
event->data.data32[1], A__NET_WM_STATE_FULLSCREEN); event->data.data32[1], A__NET_WM_STATE_FULLSCREEN);
DLOG("not about fullscreen atom\n"); DLOG("not about fullscreen atom\n");
return 0; return;
} }
Con *con = con_by_window_id(event->window); Con *con = con_by_window_id(event->window);
if (con == NULL) { if (con == NULL) {
DLOG("Could not get window for client message\n"); DLOG("Could not get window for client message\n");
return 0; return;
} }
/* Check if the fullscreen state should be toggled */ /* Check if the fullscreen state should be toggled */
@ -677,10 +677,8 @@ static int handle_client_message(xcb_client_message_event_t *event) {
free(reply); free(reply);
} else { } else {
ELOG("unhandled clientmessage\n"); ELOG("unhandled clientmessage\n");
return 0; return;
} }
return 1;
} }
#if 0 #if 0