Just wondering if you would be willing to implement the patch/hack submitted in this mailing list discussion? https://lists.launchpad.net/unity-design/msg09055.html
If it wouldn't create more headaches, of course
And this is the patch itself:
Code:
=== modified file 'plugins/unityshell/src/PanelMenuView.cpp'
--- plugins/unityshell/src/PanelMenuView.cpp 2012-04-11 00:37:25 +0000
+++ plugins/unityshell/src/PanelMenuView.cpp 2012-04-15 14:43:24 +0000
@@ -352,6 +352,7 @@
bool PanelMenuView::DrawWindowButtons() const
{
+
auto wm = WindowManager::Default();
bool screen_grabbed = (wm->IsExpoActive() || wm->IsScaleActive());
@@ -361,10 +362,7 @@
if (_we_control_active && _is_maximized && !screen_grabbed &&
!_launcher_keynav && !_switcher_showing)
{
- if (_is_inside || _show_now_activated || _new_application)
- {
- return true;
- }
+ return true;
}
return false;
@@ -528,8 +526,7 @@
{
double title_opacity = 0.0f;
- if (_we_control_active && _window_buttons->GetOpacity() == 0.0 &&
- (!has_menu || (has_menu && GetOpacity() == 0.0)))
+ if (_we_control_active && (!has_menu || (has_menu && GetOpacity() == 0.0)))
{
title_opacity = 1.0f;
}
@@ -538,11 +535,11 @@
title_opacity = 1.0f;
if (has_menu)
- title_opacity -= MAX(GetOpacity(), _window_buttons->GetOpacity());
+ title_opacity -= MAX(GetOpacity(), GetOpacity());
else
- title_opacity -= _window_buttons->GetOpacity();
+ title_opacity -= GetOpacity();
- if (!draw_window_buttons && !draw_menus)
+ if (!draw_menus)
{
// If we're fading-out the buttons/menus, let's fade-in quickly the title
title_opacity = CLAMP(title_opacity + 0.1f, 0.0f, 1.0f);
@@ -720,6 +717,9 @@
int x = MAIN_LEFT_PADDING + TITLE_PADDING + geo.x;
int y = geo.y;
+ if (DrawWindowButtons())
+ x += _window_buttons->GetContentWidth();
+
int text_width = 0;
int text_height = 0;
int text_space = 0;
It makes the close buttons visible on the menubar always with the window title so only the menu itself is hidden til mouseover.
Bookmarks