Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326714 - Bad Window on AIX 64 GTK
Summary: Bad Window on AIX 64 GTK
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC AIX
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-30 16:43 EDT by Bogdan Gheorghe CLA
Modified: 2017-12-06 01:52 EST (History)
1 user (show)

See Also:


Attachments
Temporary patch to work around Bad Window crash (1.40 KB, patch)
2010-09-30 16:44 EDT, Bogdan Gheorghe CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan Gheorghe CLA 2010-09-30 16:43:38 EDT
There is a problem with the GTK port on AIX 64. Programs crash whenever you click on the title of the window to activate it. The details are as follows:

- exits through an XError (BadWindow)

- We have a small GTK app, written in C, that crashes the same way under 64 but works well under 32

- if we trap XErrors (and dont let default handler run) everything seems to work fine 

- The error occurs in gdk_x11_set_input_focus_safe, which is called from gdk_wm_protocols_filter (in gdkevents-x11.c) when a WM_TAKE_FOCUS message is handled.

- This usually happens when a window takes focus (click on window title bar)

- The code in gdk_x11... is doing a low level X call -> GetReq(SetInputFocus, req) -> instead of calling XSetInputFocus directly

- We installed GTK 2.18 to see if a more recent version makes any difference and it doesn't.
Comment 1 Bogdan Gheorghe CLA 2010-09-30 16:44:59 EDT
Created attachment 179999 [details]
Temporary patch to work around Bad Window crash
Comment 2 Alexander Kurtakov CLA 2017-12-06 01:52:46 EST
SWT no longer provides AIX builds.