summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-09-02 18:53:34 +0200
committerAndras Timar <andras.timar@collabora.com>2015-09-18 10:10:07 +0200
commit99635ea0d8918350fc740ce6d00bc46f0d771eb6 (patch)
tree15e45d7c0ab7ae053008ca6a7c4689fb982f45ae /include/vcl
parent375534d4700379ad052a85d334b2e6e1c7c3cba5 (diff)
opengl: Don't cache the menubar background.
It can change based on the _toolbar_ size. The toolbar itself is fine though; it may depend on the menubar size, but that should be constant. Change-Id: Id2c68c89f4ec0774bc74b8c4a5b9a5e59e22137f Reviewed-on: https://gerrit.libreoffice.org/18279 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/salnativewidgets.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/salnativewidgets.hxx b/include/vcl/salnativewidgets.hxx
index fb128d380d4e..cc5db6ffb694 100644
--- a/include/vcl/salnativewidgets.hxx
+++ b/include/vcl/salnativewidgets.hxx
@@ -287,6 +287,12 @@ public:
case CTRL_CHECKBOX:
case CTRL_RADIOBUTTON:
return false;
+
+ case CTRL_MENUBAR:
+ if (mnPart == PART_ENTIRE_CONTROL)
+ return false;
+ break;
+
default:
break;
}