summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-14 11:36:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-14 12:26:10 +0000
commit8d5822983e9b6a1e04874ce4d2c807fd0cf1ee04 (patch)
tree70184f16ccc8a506363a759d2fd7bcecb19c5b54 /vcl/source/window
parent95958755cbbf8c6026b878703400d5d9ec1e6c98 (diff)
Related: rhbz#1290014 gtk3: use gtk_window_set_modal on modal dialogs
which makes modal dialogs (which are most of them) place correctly under wayland. Modeless ones are still uselessly shoved far to the left, but this makes things near usable and gives the same "graying into the bg" effect for the main window as other gtk apps Change-Id: If1486feb7631c5a0c2aa6efac3a6b9dd1b215daf Reviewed-on: https://gerrit.libreoffice.org/20699 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/dialog.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 9db9b87610a5..1793afdf524f 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -46,6 +46,7 @@
#include <vcl/msgbox.hxx>
#include <vcl/unowrap.hxx>
#include <vcl/settings.hxx>
+#include <salframe.hxx>
#include <iostream>
@@ -1032,7 +1033,6 @@ void Dialog::SetModalInputMode( bool bModal )
mpDialogParent = pParent->mpWindowImpl->mpFrameWindow;
mpDialogParent->ImplIncModalCount();
}
-
}
else
{
@@ -1068,6 +1068,7 @@ void Dialog::SetModalInputMode( bool bModal )
}
}
}
+ ImplGetFrame()->SetModal(bModal);
}
void Dialog::SetModalInputMode( bool bModal, bool bSubModalDialogs )