[Xfce4-commits] [apps/mousepad] 01/01: Make dialog windows modal only for parent window (Bug #10488)

noreply at xfce.org noreply at xfce.org
Sun May 19 00:24:36 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/mousepad.

commit c0cc9c74041b1c6c281461f5b18cf2dd4011d039
Author: Theo Linkspfeifer <lastonestanding at tutanota.com>
Date:   Sat Apr 27 16:26:57 2019 +0200

    Make dialog windows modal only for parent window (Bug #10488)
---
 mousepad/mousepad-application.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/mousepad/mousepad-application.c b/mousepad/mousepad-application.c
index b2e09aa..5d4dc21 100644
--- a/mousepad/mousepad-application.c
+++ b/mousepad/mousepad-application.c
@@ -279,6 +279,7 @@ mousepad_application_new_window_with_files (MousepadApplication  *application,
   GtkWidget        *window;
   gboolean          succeed = FALSE;
   MousepadDocument *document;
+  GtkWindowGroup   *window_group;
 
   g_return_if_fail (MOUSEPAD_IS_APPLICATION (application));
   g_return_if_fail (screen == NULL || GDK_IS_SCREEN (screen));
@@ -286,6 +287,11 @@ mousepad_application_new_window_with_files (MousepadApplication  *application,
   /* create a new window (signals added and already hooked up) */
   window = mousepad_application_create_window (application);
 
+  /* add window to own window group so that grabs only affect parent window */
+  window_group = gtk_window_group_new ();
+  gtk_window_group_add_window (window_group, GTK_WINDOW (window));
+  g_object_unref (window_group);
+
   /* place the window on the right screen */
   gtk_window_set_screen (GTK_WINDOW (window), screen ? screen : gdk_screen_get_default ());
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list