From e9fa1debf521f6cb4ea8ad3d6faa377d35390b29 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Mon, 18 Nov 2019 02:59:08 -0500 Subject: [PATCH] Deskbar: Don't allow calendar window to be manipulated By setting B_NOT_MOVABLE and B_NOT_RESIZABLE flags the calendar window can't be moved or resized by holding ctrl + alt + left/right mouse button. Change-Id: If7f280ab6595b32a6c9521051540ffba0c76d211 Reviewed-on: https://review.haiku-os.org/c/haiku/+/1965 Reviewed-by: Adrien Destugues --- src/apps/deskbar/CalendarMenuWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/deskbar/CalendarMenuWindow.cpp b/src/apps/deskbar/CalendarMenuWindow.cpp index 14a314c803..52112a9c9c 100644 --- a/src/apps/deskbar/CalendarMenuWindow.cpp +++ b/src/apps/deskbar/CalendarMenuWindow.cpp @@ -79,7 +79,8 @@ CalendarMenuWindow::CalendarMenuWindow(BPoint where) : BWindow(BRect(0.0, 0.0, 100.0, 130.0), "", B_BORDERED_WINDOW, B_AUTO_UPDATE_SIZE_LIMITS | B_ASYNCHRONOUS_CONTROLS | B_CLOSE_ON_ESCAPE - | B_NOT_MINIMIZABLE | B_NOT_ZOOMABLE), + | B_NOT_MINIMIZABLE | B_NOT_MOVABLE | B_NOT_RESIZABLE + | B_NOT_ZOOMABLE), fYearLabel(NULL), fMonthLabel(NULL), fCalendarView(NULL),