changeset 19:55ed5c42c22f

imported patch 22_kinput2-override_redirect.patch
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 08 Mar 2010 20:38:17 +0900
parents 07a41a882b14
children 9a2fbf86b5c7
files lib/OnConv.c lib/OverConv.c
diffstat 2 files changed, 33 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/OnConv.c	Mon Mar 08 20:38:17 2010 +0900
+++ b/lib/OnConv.c	Mon Mar 08 20:38:17 2010 +0900
@@ -490,6 +490,14 @@
     XtInstallAccelerators(sel, (Widget)ocw);
 
     ocw->onthespot.selectionwidget = sel;
+    setMwmHints(shell);
+    {
+        XSetWindowAttributes attr;
+        
+        attr.override_redirect = True;
+        XChangeWindowAttributes (XtDisplay (shell), XtWindow (shell),
+				 CWOverrideRedirect, &attr);
+    }
 
     return shell;
 }
@@ -519,6 +527,14 @@
     XtInstallAccelerators(sel, (Widget)ocw);
 
     ocw->onthespot.auxwidget = sel;
+    setMwmHints(shell);
+    {
+        XSetWindowAttributes attr;
+        
+        attr.override_redirect = True;
+        XChangeWindowAttributes (XtDisplay (shell), XtWindow (shell),
+				 CWOverrideRedirect, &attr);
+    }
 
     return shell;
 }
--- a/lib/OverConv.c	Mon Mar 08 20:38:17 2010 +0900
+++ b/lib/OverConv.c	Mon Mar 08 20:38:17 2010 +0900
@@ -158,7 +158,7 @@
 static void MoveShell();
 static Window getToplevelWindow();
 static void setTransientFor();
-static void setMwmHints();
+void setMwmHints();
 static void getFocusOffset();
 static Boolean intersectRect();
 static void unionRect();
@@ -566,6 +566,14 @@
 
     ocw->overthespot.selectionwidget = sel;
     ocw->overthespot.selectiondisplayobj = obj;
+    setMwmHints(shell);
+    {
+        XSetWindowAttributes attr;
+        
+        attr.override_redirect = True;
+        XChangeWindowAttributes (XtDisplay (shell), XtWindow (shell),
+				 CWOverrideRedirect, &attr);
+    }
 }
 
 /*- CreateAuxWidget: create auxiliary widget for displaying auxiliary data -*/
@@ -635,6 +643,13 @@
 
     /* set mwm hints for the shell */
     setMwmHints(shell);
+    {
+        XSetWindowAttributes attr;
+        
+        attr.override_redirect = True;
+        XChangeWindowAttributes (XtDisplay (shell), XtWindow (shell),
+				 CWOverrideRedirect, &attr);
+    }
 }
 
 /*- CreateTextCanvas: create a text canvas -*/
@@ -2490,7 +2505,7 @@
 }
 
 /*-setMwmHints: set _MOTIF_WM_HINTS for mode shell -*/
-static void
+void
 setMwmHints(w)
 Widget w;
 {