Odd behaviour with Oxygen on Wayland
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 8
- Joined: Sat Mar 12, 2005 12:37 am
Odd behaviour with Oxygen on Wayland
Post by Martin Holmes »
Hi there,
Wayland is rapidly becoming the default on Linux, and when we upgrade our lab later this year, the machines will all be on Wayland rather than XOrg, In anticipation of this, we've been running Wayland on various machines to see what transpires. We're noticing a sporadic but persistent problem as follows:
- You're typing in Oxygen in text mode, and you hit a keyboard shortcut such as Control + E to insert a tag.
- The focus switches away from Oxygen to the last app you were using on that desktop, and anything you type after that goes into that app instead of Oxygen.
Has anyone else noticed this? If so, have you found any workarounds?
Wayland is rapidly becoming the default on Linux, and when we upgrade our lab later this year, the machines will all be on Wayland rather than XOrg, In anticipation of this, we've been running Wayland on various machines to see what transpires. We're noticing a sporadic but persistent problem as follows:
- You're typing in Oxygen in text mode, and you hit a keyboard shortcut such as Control + E to insert a tag.
- The focus switches away from Oxygen to the last app you were using on that desktop, and anything you type after that goes into that app instead of Oxygen.
Has anyone else noticed this? If so, have you found any workarounds?
Martin Holmes
University of Victoria
University of Victoria
Re: Odd behaviour with Oxygen on Wayland
It seems that gnome and Oxygen use the same shortcut. Have you tried changing the shortcut in either gnome or Oxygen?
stefan-jung.org – Your DITA/DITA-OT XML consultant
Re: Odd behaviour with Oxygen on Wayland
Hello,
Unfortunately Java doesn't currently provide proper Wayland desktop support. There is an ongoing project regarding this,
OpenJDK Project Wakefield.
This is the most recent info I can find regarding this project:
https://inside.java/2024/03/24/openjdk-wakefield/
In the meantime, do note that Oxygen does not officially support Wayland, as mentioned on the download page:
Regards,
Adrian
Unfortunately Java doesn't currently provide proper Wayland desktop support. There is an ongoing project regarding this,
OpenJDK Project Wakefield.
This is the most recent info I can find regarding this project:
https://inside.java/2024/03/24/openjdk-wakefield/
In the meantime, do note that Oxygen does not officially support Wayland, as mentioned on the download page:
I don't recommend switching to Wayland at this time, if you depend on Oxygen and/or Java apps. You may encounter some issues with Wayland that we cannot control.The version of Java bundled with Oxygen requires X.org. Wayland is not supported.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 179
- Joined: Wed Apr 20, 2005 5:43 pm
- Location: Victoria, BC, Canada
Re: Odd behaviour with Oxygen on Wayland
Post by martindholmes »
Wayland is going to be the default on the most common desktops in the very near future, so sticking with X11 isn't really a workable option for Linux users.
-
- Posts: 179
- Joined: Wed Apr 20, 2005 5:43 pm
- Location: Victoria, BC, Canada
Re: Odd behaviour with Oxygen on Wayland
Post by martindholmes »
@xephon, I can't find any sign of a Ctrl + E shortcut in Gnome. Where did you see this?
-
- Posts: 179
- Joined: Wed Apr 20, 2005 5:43 pm
- Location: Victoria, BC, Canada
Re: Odd behaviour with Oxygen on Wayland
Post by martindholmes »
I've just upgraded to Ubuntu 24.04, and this problem is back with a vengeance; it's also happening under X as well as Wayland, so it's not connected to that. These are the symptoms:
1. Work in another application.
2. Alt + Tab to Oxygen. Oxygen receives the focus, and a cursor is apparent in the Oxygen editor.
3. Type or use the keyboard: nothing happens in Oxygen, although sometimes another application receives the keyboard events.
4. Click away from Oxygen and back again, OR move the mouse up to the Oxygen title bar and back again, and Oxygen does receive the focus properly, and typing now works.
This is happening many times a day. I'm using the latest Oxygen with its built-in Java.
1. Work in another application.
2. Alt + Tab to Oxygen. Oxygen receives the focus, and a cursor is apparent in the Oxygen editor.
3. Type or use the keyboard: nothing happens in Oxygen, although sometimes another application receives the keyboard events.
4. Click away from Oxygen and back again, OR move the mouse up to the Oxygen title bar and back again, and Oxygen does receive the focus properly, and typing now works.
This is happening many times a day. I'm using the latest Oxygen with its built-in Java.
Re: Odd behaviour with Oxygen on Wayland
Hello,
We've recently tested Oxygen v26.1 on Ubuntu 24 Desktop but did not observe the described issues.
I'd like to point out that from this:
What you can try is to install OpenJDK 17 JRE from the Ubuntu repository (apt install openjdk-17-jre). Do note that OpenJDK 21 or 22 are not supported by Oxygen v26, so we cannot recommend them.
Then rename the "jre" folder from the Oxygen installation folder (e.g. "jre.old") and run Oxygen like this. It will complain about the Java vendor at startup, but as long as the version if supported, it should allow you to continue.
You can check what version of Java is Oxygen using in Help > About, System properties, java.vm.vendor, java.vm.version.
Regards,
Adrian
We've recently tested Oxygen v26.1 on Ubuntu 24 Desktop but did not observe the described issues.
I'd like to point out that from this:
if the events get to another application and not Oxygen, it may be a window manager issue (app appears to be selected, but does not actually have keyboard focus, so it does not receive keyboard events). Or in the very least it's an issue between Java and the window manager.3. Type or use the keyboard: nothing happens in Oxygen, although sometimes another application receives the keyboard events.
What you can try is to install OpenJDK 17 JRE from the Ubuntu repository (apt install openjdk-17-jre). Do note that OpenJDK 21 or 22 are not supported by Oxygen v26, so we cannot recommend them.
Then rename the "jre" folder from the Oxygen installation folder (e.g. "jre.old") and run Oxygen like this. It will complain about the Java vendor at startup, but as long as the version if supported, it should allow you to continue.
You can check what version of Java is Oxygen using in Help > About, System properties, java.vm.vendor, java.vm.version.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service