diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-04-03 12:34:38 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-04-03 14:09:19 +0200 |
commit | c31734d0e49a778cffb1fdc3cd04adb45270e1da (patch) | |
tree | 380fdfda71429a0e8c1ff1d71bbe59df9ce76760 /vcl/inc/win | |
parent | ac8ee6e8f7f2de31e1dc496c1fab953e88e15bba (diff) |
tdf#114316 vcl opengl windows: fix missing context menu in full-screen mode
Full-screen mode on Windows used to work by measuring the space needed
by window caption (title) and borders, then positioning and sizing the
window in a way, so that the caption and borders are not visible.
This approach breaks at least in the OpenGL case where a large enough
negative position results in rendering errors.
Fix the problem by explicitly requesting the window to have no caption,
so we render less outside the screen (30 pixels -> 8 pixels in my case),
which makes the "exit fullscreen" toolbar appear, also the context menu
is visible.
Change-Id: I6cf2b9774b505d3887b958a6a018b5ae84bbe4bc
Reviewed-on: https://gerrit.libreoffice.org/70191
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'vcl/inc/win')
-rw-r--r-- | vcl/inc/win/salframe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/inc/win/salframe.h b/vcl/inc/win/salframe.h index c556794b64f7..8e94f384b523 100644 --- a/vcl/inc/win/salframe.h +++ b/vcl/inc/win/salframe.h @@ -49,6 +49,7 @@ public: int mnMaxHeight; // max. client height in pixeln RECT maFullScreenRect; // fullscreen rect int mnFullScreenShowState; // fullscreen restore show state + bool mbFullScreenCaption; // WS_CAPTION reset in full screen mode. UINT mnInputLang; // current Input Language UINT mnInputCodePage; // current Input CodePage SalFrameStyleFlags mnStyle; // style |