[gnome-boxes/fix-transfer-box-stealing-focus: 1/2] Revert "display-page: Center the DnD transfer message in an overlayed osd box"
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/fix-transfer-box-stealing-focus: 1/2] Revert "display-page: Center the DnD transfer message in an overlayed osd box"
- Date: Tue, 5 May 2020 15:27:02 +0000 (UTC)
commit e81923ac376f511a1f3d7ef961f1dd5e25fab055
Author: Felipe Borges <felipeborges gnome org>
Date: Tue May 5 17:14:38 2020 +0200
Revert "display-page: Center the DnD transfer message in an overlayed osd box"
This reverts commit c9cd4efd4273c72a31948a973a078ed520a230bd.
data/ui/display-page.ui | 3 ++-
src/display-page.vala | 5 ++++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/data/ui/display-page.ui b/data/ui/display-page.ui
index 3165c9e0..dcb5ed65 100644
--- a/data/ui/display-page.ui
+++ b/data/ui/display-page.ui
@@ -50,9 +50,10 @@
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
+ <property name="hexpand">true</property>
+ <property name="vexpand">true</property>
<style>
<class name="app-notification"/>
- <class name="overlay-box"/>
</style>
<child>
<object class="GtkImage">
diff --git a/src/display-page.vala b/src/display-page.vala
index 50d3d04b..b786a648 100644
--- a/src/display-page.vala
+++ b/src/display-page.vala
@@ -158,7 +158,10 @@ public void replace_display (Boxes.Display display, Widget widget) {
return true;
});
- transfer_message_box_drag_leave_id = widget.drag_leave.connect (() => {
+ transfer_message_box_drag_motion_id = transfer_message_box.drag_motion.connect (() => {
+ return true;
+ });
+ transfer_message_box_drag_leave_id = transfer_message_box.drag_leave.connect (() => {
transfer_message_box.hide ();
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]