Bugfix: Don’t handle mouse click events inside the titlebar

next
Michael Stapelberg 2009-03-11 00:45:49 +01:00
parent 38c8541807
commit ec290cbfa9
1 changed files with 7 additions and 0 deletions

View File

@ -237,6 +237,13 @@ int handle_button_press(void *ignored, xcb_connection_t *conn, xcb_button_press_
return 1;
}
/* Dont handle events inside the titlebar, only borders are interesting */
i3Font *font = load_font(conn, config.font);
if (event->event_y >= 2 && event->event_y <= (font->height + 2 + 2)) {
LOG("click on titlebar\n");
return 1;
}
if (event->event_y < 2) {
/* This was a press on the top border */
if (con->row == 0)