From 1155c11456d271f2394e822a2b11066536bf1e66 Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Wed, 17 Jun 2026 01:01:23 +0200 Subject: [PATCH] try to more closely match freedesktop specifications: distinguish between submenus and torn-off menus; attempt to set toolbar instead of dock for the main menu --- Source/x11/XGServerWindow.m | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/x11/XGServerWindow.m b/Source/x11/XGServerWindow.m index 98392693..4a26eb3f 100644 --- a/Source/x11/XGServerWindow.m +++ b/Source/x11/XGServerWindow.m @@ -3445,11 +3445,15 @@ - (void) setwindowlevel: (int)level : (int)win } else if (level == NSMainMenuWindowLevel) { - data[0] = generic._NET_WM_WINDOW_TYPE_DOCK_ATOM; + data[0] = generic._NET_WM_WINDOW_TYPE_TOOLBAR_ATOM; skipTaskbar = YES; } - else if (level == NSSubmenuWindowLevel - || level == NSTornOffMenuWindowLevel) + else if (level == NSSubmenuWindowLevel) + { + data[0] = generic._NET_WM_WINDOW_TYPE_DROPDOWN_MENU_ATOM; + skipTaskbar = YES; + } + else if (level == NSTornOffMenuWindowLevel) { data[0] = generic._NET_WM_WINDOW_TYPE_MENU_ATOM; skipTaskbar = YES;