Blame SOURCES/0001-impress-s-AnnotationWindow-is-the-only-user-of-WB_NE.patch

a9add1
From 94341df754fddacefb01638e5c544a5ba66de750 Mon Sep 17 00:00:00 2001
a9add1
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
a9add1
Date: Wed, 16 Dec 2015 21:26:15 +0000
a9add1
Subject: [PATCH] impress's AnnotationWindow is the only user of WB_NEEDSFOCUS
a9add1
MIME-Version: 1.0
a9add1
Content-Type: text/plain; charset=UTF-8
a9add1
Content-Transfer-Encoding: 8bit
a9add1
a9add1
Here it is creating a toplevel floating system window which needs special
a9add1
hackery to function.
a9add1
a9add1
Instead convert it to a non-system window which means that it is in reality
a9add1
only a vcl construct. The small downside is that it is now unable to leave the
a9add1
confines of the toplevel system window in which it lives. Upside is that
a9add1
all the special hackery related to it which generally doesn't work half the time
a9add1
in various window managers and now in wayland can go away.
a9add1
a9add1
Change-Id: I7ad7c35091086f7671ff4a178c7fa04202c20e09
a9add1
Reviewed-on: https://gerrit.libreoffice.org/20745
a9add1
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
a9add1
Tested-by: Caolán McNamara <caolanm@redhat.com>
a9add1
---
a9add1
 sd/source/ui/annotations/annotationwindow.cxx | 3 ++-
a9add1
 1 file changed, 2 insertions(+), 1 deletion(-)
a9add1
a9add1
diff --git a/sd/source/ui/annotations/annotationwindow.cxx b/sd/source/ui/annotations/annotationwindow.cxx
a9add1
index bcad03d..c307f1d 100644
a9add1
--- a/sd/source/ui/annotations/annotationwindow.cxx
a9add1
+++ b/sd/source/ui/annotations/annotationwindow.cxx
a9add1
@@ -273,7 +273,7 @@ Selection AnnotationTextWindow::GetSurroundingTextSelection() const
a9add1
 /************** AnnotationWindow***********************************++*/
a9add1
 
a9add1
 AnnotationWindow::AnnotationWindow( AnnotationManagerImpl& rManager, DrawDocShell* pDocShell, vcl::Window* pParent )
a9add1
-: FloatingWindow(pParent, WB_SYSTEMWINDOW|WB_BORDER|WB_NEEDSFOCUS)
a9add1
+: FloatingWindow(pParent, WB_BORDER)
a9add1
 , mrManager( rManager )
a9add1
 , mpDocShell( pDocShell )
a9add1
 , mpView( pDocShell->GetViewShell()->GetView() )
a9add1
@@ -287,6 +287,7 @@ AnnotationWindow::AnnotationWindow( AnnotationManagerImpl& rManager, DrawDocShel
a9add1
 , mpTextWindow(0)
a9add1
 , mpMeta(0)
a9add1
 {
a9add1
+    EnableAlwaysOnTop();
a9add1
 }
a9add1
 
a9add1
 AnnotationWindow::~AnnotationWindow()
a9add1
-- 
a9add1
2.5.0
a9add1