Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326714

Summary: Bad Window on AIX 64 GTK
Product: [Eclipse Project] Platform Reporter: Bogdan Gheorghe <gheorghe>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: AIX   
Whiteboard:
Attachments:
Description Flags
Temporary patch to work around Bad Window crash none

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.