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

Sway Qt5 error: Wayland does not support QWindow::requestActivate() #619

Closed
patbel-pwr opened this issue Sep 30, 2019 · 7 comments
Closed

Comments

@patbel-pwr
Copy link

Flameshot version
Flameshot v0.6.0

Describe the bug
Flameshot on Sway window manager start normally, but trying to create screenshot displays information:
"Flameshot info
Unable to capture screen"

In journalctl:
wrz 30 13:29:23 sandworm flameshot[28606]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

To Reproduce
Install flameshot in sway I guess, click on flameshot icon.

Expected behavior
See error message from flameshot and warnings in journalctl

System Information
EndeavourOS Linux x86_64 (arch based)
Kernel: 4.19.75-1-lts
WM: sway

@patbel-pwr patbel-pwr changed the title Sway Qt5 error Sway Qt5 error: Wayland does not support QWindow::requestActivate() Sep 30, 2019
@blaggacao
Copy link

I found: https://forum.qt.io/post/461097

qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

This means your window tried to grab focus in the compositor, which is not allowed in wayland. Don't create a bug for it, there's nothing we can do.

here my logs:

dar@pc3:~$ flameshot
Using Wayland-EGL
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

@vvrein
Copy link

vvrein commented Dec 23, 2019

I have no clue about C++, but may it be a decision in borrowing some code from
https://wayland.emersion.fr/
Select region
https://github.com/emersion/slurp
Grab image
https://github.com/emersion/grim

But this would work only for wlroots based WM

@vvrein
Copy link

vvrein commented Dec 23, 2019

Ok, all wayland support progress seems goes here #446

@manos-mark
Copy link

A possible workaround for this issue
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Execute the python script using xcb platform
For example:
python test.py -platform xcb

@patbel-pwr
Copy link
Author

patbel-pwr commented Jun 17, 2020

@manos-mark thank you for reply!
Is this workaround for devs or users? As a user I don't see how I could implement this...

@manos-mark
Copy link

@manos-mark thank you for reply!
Is this workaround for devs or users? As a user I don't see how I could implement this...

Sorry i should mention that, it is for developers.

@borgmanJeremy
Copy link
Contributor

Sway support was just added in #1272

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

5 participants