Mercurial > kinput2.yaz
comparison lib/OnConv.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 |
comparison
equal
deleted
inserted
replaced
18:07a41a882b14 | 19:55ed5c42c22f |
---|---|
488 NULL, 0); | 488 NULL, 0); |
489 XtAddCallback(sel, XtNcallback, SelectionSelected, (XtPointer)ocw); | 489 XtAddCallback(sel, XtNcallback, SelectionSelected, (XtPointer)ocw); |
490 XtInstallAccelerators(sel, (Widget)ocw); | 490 XtInstallAccelerators(sel, (Widget)ocw); |
491 | 491 |
492 ocw->onthespot.selectionwidget = sel; | 492 ocw->onthespot.selectionwidget = sel; |
493 setMwmHints(shell); | |
494 { | |
495 XSetWindowAttributes attr; | |
496 | |
497 attr.override_redirect = True; | |
498 XChangeWindowAttributes (XtDisplay (shell), XtWindow (shell), | |
499 CWOverrideRedirect, &attr); | |
500 } | |
493 | 501 |
494 return shell; | 502 return shell; |
495 } | 503 } |
496 | 504 |
497 /*- CreateAuxWidget: create aux widget for display auxiliary data -*/ | 505 /*- CreateAuxWidget: create aux widget for display auxiliary data -*/ |
517 NULL, 0); | 525 NULL, 0); |
518 XtAddCallback(sel, XtNcallback, SelectionSelected, (XtPointer)ocw); | 526 XtAddCallback(sel, XtNcallback, SelectionSelected, (XtPointer)ocw); |
519 XtInstallAccelerators(sel, (Widget)ocw); | 527 XtInstallAccelerators(sel, (Widget)ocw); |
520 | 528 |
521 ocw->onthespot.auxwidget = sel; | 529 ocw->onthespot.auxwidget = sel; |
530 setMwmHints(shell); | |
531 { | |
532 XSetWindowAttributes attr; | |
533 | |
534 attr.override_redirect = True; | |
535 XChangeWindowAttributes (XtDisplay (shell), XtWindow (shell), | |
536 CWOverrideRedirect, &attr); | |
537 } | |
522 | 538 |
523 return shell; | 539 return shell; |
524 } | 540 } |
525 | 541 |
526 /* | 542 /* |