Skip to content

[BUG] Wayland and Ubuntu 24.10 - Wayland does not support QWindow::requestActivate() #232

@eMKiso

Description

@eMKiso

Description
When I use projecteur the 'projecteur overlay' stays 'frozen' on the screen. The user cannot use the mouse to interact with items on the desktop/screen any more. Also mouse cursor is hidden behind the overlay. Alt+Tab or Alt+F4 can be used to get back to a working desktop.

To Reproduce
I use Projecteur (v0.10) on Ubuntu 24.10 with wayland on the desktop and it starts just fine from the command line. I use the recommended command for wayland QT_QPA_PLATFORM=wayland projecteur .
I can see the dot as expected and it moves as expected.

When I release the button the image stays static and I cannot click/select anything with the mouse cursor. I can use Tab+Alt on the keyboard to switch active window and it seems as if the projecteur overlay stays active even after I release the button on the presenter tool.

Just a descroption of the behaviour with LibreOffice Impress, but this is not crucial since the problems already appear on the GNOME desktop.
If I try to use projecteur with LibreOffice Impress then the projecteur overlay is just a blank black screen (the slide is replaced by a black screen where I can see the presenter dot moving). I also cannot move to the next slide since the overlay is the 'active' window and the presentation is 'under' the projecteur overlay.

In the log I can see this warning:
[wrn][qt.qpa.wayland] Wayland does not support QWindow::requestActivate()

What is interesting is that once I start projecteur with QT_QPA_PLATFORM=wayland projecteur I don't see the line: Using Wayland-EGL which is visible in the instructions.

Expected behavior
Once the user releases the pointer button on the presenter tool the projecteur overlay shoud be removed/deactivated and the desktop available to be manipulated by mouse.

I googled the issue a bit and found one workaround:
QT_QPA_PLATFORM=xcb projecteur
If I use the QT_QPA_PLATFORM=xcb option then the projecteur software works as expected.
(Except the mouse cursor is visible 'over' the presenter dot (so dot+cursor in the center of the dot are visible). But this is a different issue and not relevant here)

Desktop/Linux Environment (please complete the following information):

  • Linux Distribution and Version: Ubuntu 24.10
  • Desktop/Window Manager and Version GNOME 47 + wayland
  • Did you built Projecteur yourself?: n
  • What is the output of projecteur -f ?:
Projecteur 0.10
  - git-branch: tag: v0.10, master
  - git-hash: a7b2649296f5f8b6793e0c38cdee93d36831404b
  - compiler: GNU 13.2.0
  - build-type: Debian
  - qt-version: (build: 5.15.13, runtime: 5.15.15)
  - device-scan: (errors: 0, devices: 1 [readable: 1, writable: 1])
  • What is the output of projecteur -d ?:
Projecteur 0.10; device scan

 * Found 1 supported devices. (1 readable, 1 writable)

 +++ name:     'Logitech USB Receiver'
     userName: 'Logitech Spotlight (USB)'
     vendorId:  046d
     productId: c53e
     phys:      usb-0000:c3:00.4-1.2.3
     busType:   BusType::Usb
     devices:   /dev/input/event20, /dev/input/event19, /dev/input/event21, /dev/hidraw10, /dev/input/event18
     readable:  true
     writable:  true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions