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

Bug 515773

Summary: [wayland] Text widget not able to grab focus with SWT.ON_TOP shell
Product: [Eclipse Project] Platform Reporter: Ian Pun <ipun>
Component: SWTAssignee: Ian Pun <ipun>
Status: VERIFIED FIXED QA Contact: Leo Ufimtsev <lufimtse>
Severity: normal    
Priority: P3 CC: akurtakov, gautier.desaintmartinlacaze, lshanmug, lufimtse
Version: 4.7   
Target Milestone: 4.8 M5   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/96061
https://bugs.eclipse.org/bugs/show_bug.cgi?id=516907
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=d674cf3686c90551f3006ba4e55f1fd66f77658c
https://bugs.eclipse.org/bugs/show_bug.cgi?id=533710
https://git.eclipse.org/r/122135
https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=467296f8e2b8352bd93e9bc7039f9c232e18bee0
https://bugs.eclipse.org/bugs/show_bug.cgi?id=534554
Whiteboard:
Bug Depends on:    
Bug Blocks: 514483, 542104    
Attachments:
Description Flags
Modified snippet to showcase issue none

Description Ian Pun CLA 2017-04-25 10:37:28 EDT

    
Comment 1 Ian Pun CLA 2017-04-25 10:38:57 EDT
Created attachment 267974 [details]
Modified snippet to showcase issue
Comment 2 Ian Pun CLA 2017-04-25 10:41:10 EDT
The problem with our Wayland move is that a shell of GTK_WINDOW_POPUP can't seem to get input focus. Running the attached snippet you will see the issue.

Setting the window type to GTK_WINDOW_TOPLEVEL seems to solve this, but you cannot give it x/y coordinates as it doesn't have a relative subsurface to relate to.

Needs further investigation to find out the solution to this
Comment 3 Ian Pun CLA 2017-04-27 12:06:02 EDT
https://bugzilla.gnome.org/show_bug.cgi?id=781845

I filed a bug report to GTK team regarding this issue and am awaiting a response to how to tackle this
Comment 4 Eclipse Genie CLA 2017-04-28 15:07:35 EDT
New Gerrit change created: https://git.eclipse.org/r/96061
Comment 5 Ian Pun CLA 2017-12-08 15:54:39 EST
I will be revisiting this starting Dec 16 and seeing if any new changes from GTK can warrent a better change. Otherwise, this may be blocked by Wayland until further notice.
Comment 6 Ian Pun CLA 2017-12-08 15:54:47 EST
I will be revisiting this starting Dec 16 and seeing if any new changes from GTK can warrent a better change. Otherwise, this may be blocked by Wayland until further notice.
Comment 8 Alexander Kurtakov CLA 2018-01-05 05:04:35 EST
One of the most annoying bugs on Wayland. Glad to see it gone now.
Comment 9 Lakshmi P Shanmugam CLA 2018-01-24 02:08:21 EST
Hi Alex, Can you please verify this bug?
Comment 10 Alexander Kurtakov CLA 2018-01-24 03:20:31 EST
Launch bar search works proper with M5 candidate.
Comment 11 Leo Ufimtsev CLA 2018-05-02 12:18:51 EDT
This caused the regression:
533710 – [Wayland] Gnome-shell crashes when selecting an item from List
https://bugs.eclipse.org/bugs/show_bug.cgi?id=533710

Will investigate fix.
Comment 12 Eclipse Genie CLA 2018-05-03 14:58:40 EDT
New Gerrit change created: https://git.eclipse.org/r/122135
Comment 14 Leo Ufimtsev CLA 2018-05-03 15:44:26 EDT
(In reply to Eclipse Genie from comment #12)
> New Gerrit change created: https://git.eclipse.org/r/122135

Fixed by ^