Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window focus issue in Ubuntu 24.04 #1505

Open
gz7dn9 opened this issue Nov 26, 2024 · 1 comment
Open

Window focus issue in Ubuntu 24.04 #1505

gz7dn9 opened this issue Nov 26, 2024 · 1 comment

Comments

@gz7dn9
Copy link

gz7dn9 commented Nov 26, 2024

I'm using XFCE desktop (not the default one) with X11, NVidia GPU and driver nvidia-driver-550, and multiple monitors. I recently upgraded from Ubuntu 22 to 24. After the upgrade, Awakened POE Trade didn't work. After installing libfuse2 and creating an apparmor profile for APT, APT does run, but has some strange behavior with the mouse pointer.

  • the appImage itself said to install fuse, but fuse 3 comes with Ubuntu 24 - some research said that you could install libfuse2 in parallel, and was necessary to make some apps work, so I installed that with 'sudo apt install libfuse2'
  • At this point, the appImage was complaining about a sandboxing error. The apparmor profile was suggested by some other research that said that Ubuntu 24 changed some default rules about apparmor related to sandboxing. The apparmor file I created is:
# This profile allows everything and only exists to give the
# application a name instead of having the label "unconfined"

abi <abi/4.0>,
include <tunables/global>

profile awakened_poe /home/kingdj/POE/Awakened-PoE-Trade-3.25.102.AppImage flags=(default_allow) {
  userns,

  # Site-specific additions and overrides. See local/README for details.
  include if exists <local/awakened_poe>
}

With this, I could get APT to run.

The strange behavior is that when I give an application other than PoE focus (this can be by using the mouse or Alt-tab), and then go back inside PoE, the mouse cursor is not the PoE cursor, and PoE does not respond to mouse clicks or keyboard. The FPS indicator in PoE also remains at the PoE background FPS limit, so PoE isn't recognizing that it should be the focussed application again.

I can get PoE to retake the focus only by:

  1. put the mouse over PoE
  2. press Shift-Space (hotkey to bring up APT main menu). The APT main menu doesn't appear at this point. Other APT keystrokes don't work here
  3. click the mouse on PoE OR press Shift-Space again OR press Escape

Attempting to use Alt-Tab to switch to either PoE or APT do not result in PoE taking focus again

It acts a lot like APT has the mouse focus, but the overlay isn't active.

@gz7dn9
Copy link
Author

gz7dn9 commented Nov 26, 2024

Some more info: using the APT debug interface, I was able to determine that, while the mouse is over PoE but PoE is not responding, APT is seeing the keyboard activity. This is a log showing that:

image

Note that it doesn't see the toggle-overlay action until the 2nd press of Shift-space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant