# HG changeset patch # User Yoshiki Yazawa # Date 1268048297 -32400 # Node ID 55ed5c42c22f18da1866d87ef8ba377d73684b45 # Parent 07a41a882b14ab7d87c31c7ea9b243af3a120bfb imported patch 22_kinput2-override_redirect.patch diff -r 07a41a882b14 -r 55ed5c42c22f lib/OnConv.c --- 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; } diff -r 07a41a882b14 -r 55ed5c42c22f lib/OverConv.c --- 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; {