diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-16 21:26:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-01-28 10:41:45 +0000 |
commit | 3324d9d93290339bba8660ed4ea57891c688c020 (patch) | |
tree | 842797913074edeb2c1a4c27a30a0f3df9b745c1 /sd | |
parent | 8cba787ed8d569b34da59b2ca001a6525c15e7ba (diff) |
impress's AnnotationWindow is the only user of WB_NEEDSFOCUS
Here it is creating a toplevel floating system window which needs special
hackery to function.
Instead convert it to a non-system window which means that it is in reality
only a vcl construct. The small downside is that it is now unable to leave the
confines of the toplevel system window in which it lives. Upside is that
all the special hackery related to it which generally doesn't work half the time
in various window managers and now in wayland can go away.
Change-Id: I7ad7c35091086f7671ff4a178c7fa04202c20e09
Reviewed-on: https://gerrit.libreoffice.org/20745
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 3d3e95d68557e93224ebdf75a2ac56acf42e7d44)
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/annotations/annotationwindow.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx index eecc0e33aae3..dcbeb2262a75 100644 --- a/sd/source/ui/annotations/annotationwindow.cxx +++ b/sd/source/ui/annotations/annotationwindow.cxx @@ -272,7 +272,7 @@ Selection AnnotationTextWindow::GetSurroundingTextSelection() const /************** AnnotationWindow***********************************++*/ AnnotationWindow::AnnotationWindow( AnnotationManagerImpl& rManager, DrawDocShell* pDocShell, vcl::Window* pParent ) -: FloatingWindow(pParent, WB_SYSTEMWINDOW|WB_BORDER|WB_NEEDSFOCUS) +: FloatingWindow(pParent, WB_BORDER) , mrManager( rManager ) , mpDocShell( pDocShell ) , mpDoc( pDocShell->GetDoc() ) @@ -285,6 +285,7 @@ AnnotationWindow::AnnotationWindow( AnnotationManagerImpl& rManager, DrawDocShel , mpTextWindow(nullptr) , mpMeta(nullptr) { + EnableAlwaysOnTop(); } AnnotationWindow::~AnnotationWindow() |