Mercurial > kinput2.yaz
diff lib/OverConv.c @ 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 |
line wrap: on
line diff
--- 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; {