Allow windows to be dragged by menu bars

This commit is contained in:
K. Lange 2018-08-07 19:18:22 +09:00
parent 84b007fa6a
commit fbfecde4be

View File

@ -901,5 +901,9 @@ int menu_bar_mouse_event(yutani_t * yctx, yutani_window_t * window, struct menu_
_entries++; _entries++;
} }
if (x >= offset && me->command == YUTANI_MOUSE_EVENT_DOWN && me->buttons & YUTANI_MOUSE_BUTTON_LEFT) {
yutani_window_drag_start(yctx, window);
}
return 0; return 0;
} }