diff --git a/src/editor/editwidget.c b/src/editor/editwidget.c
index 7f85545..39a8413 100644
a
|
b
|
edit_dialog_mouse_callback (Widget * w, mouse_msg_t msg, mouse_event_t * event) |
889 | 889 | top = l; |
890 | 890 | |
891 | 891 | /* Handle fullscreen/close buttons in the top line */ |
892 | | x = w->cols - 5; |
| 892 | x = w->cols - 6; |
893 | 893 | |
894 | 894 | if (top != NULL && event->x >= x) |
895 | 895 | { |
… |
… |
edit_mouse_callback (Widget * w, mouse_msg_t msg, mouse_event_t * event) |
1093 | 1093 | { |
1094 | 1094 | if (event->y == 0) |
1095 | 1095 | { |
1096 | | if (event->x == close_x) |
| 1096 | if (event->x >= close_x - 1 && event->x <= close_x + 1) |
1097 | 1097 | ; /* do nothing (see MSG_MOUSE_CLICK) */ |
1098 | | else if (event->x == toggle_fullscreen_x) |
| 1098 | else if (event->x >= toggle_fullscreen_x - 1 && event->x <= toggle_fullscreen_x + 1) |
1099 | 1099 | ; /* do nothing (see MSG_MOUSE_CLICK) */ |
1100 | 1100 | else |
1101 | 1101 | { |
… |
… |
edit_mouse_callback (Widget * w, mouse_msg_t msg, mouse_event_t * event) |
1125 | 1125 | case MSG_MOUSE_CLICK: |
1126 | 1126 | if (event->y == 0) |
1127 | 1127 | { |
1128 | | if (event->x == close_x) |
| 1128 | if (event->x >= close_x - 1 && event->x <= close_x + 1) |
1129 | 1129 | send_message (w->owner, NULL, MSG_ACTION, CK_Close, NULL); |
1130 | | else if (event->x == toggle_fullscreen_x) |
| 1130 | else if (event->x >= toggle_fullscreen_x - 1 && event->x <= toggle_fullscreen_x + 1) |
1131 | 1131 | edit_toggle_fullscreen (edit); |
1132 | 1132 | else if (!edit->fullscreen && event->count == GPM_DOUBLE) |
1133 | 1133 | /* double click on top line (toggle fullscreen) */ |