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

Force X11 doesn't work #525

Closed
cuihaoleo opened this issue Feb 7, 2024 · 2 comments
Closed

Force X11 doesn't work #525

cuihaoleo opened this issue Feb 7, 2024 · 2 comments

Comments

@cuihaoleo
Copy link

Describe the bug
"Force the use of X11 on Wayland" setting doesn't seem to effect.

To Reproduce
Steps to reproduce the behavior:

  1. Build workrave (I had to disable GTK4 due to Failed to build due to invalid g-ir-scanner option #524 )
  2. Run workrave on KDE wayland
  3. Check if it runs on Wayland or X11

"Force the use of X11 on Wayland" setting is by default on. But it has no effect. See the screenshot below. You can tell from the title bar icon that it still uses Wayland.

Expected behavior

"Force the use of X11 on Wayland" setting works.

Screenshots
image

** Linux (please complete the following information in case you encountered the bug on Linux):**

  • Distribution: Arch Linux
  • Distribution Version: rolling
  • Desktop Environment: KDE Plasma 5.27.10, Wayland session
  • Workrave Version: Beta 10 / Git HEAD (3304410)

Additional context

Log when runs from terminal:

[2024-02-07 11:14:23.895] [workrave] [info ] Workrave started
[2024-02-07 11:14:23.895] [workrave] [info ] Log file: /home/cuihao/.cache/workrave/workrave.log
[2024-02-07 11:14:23.979] [toolkit] [info ] Toolkit reported # displays : 2
[2024-02-07 11:14:23.979] [toolkit] [info ] Display #0: primary=false x=0 y=0 w=1920 h=1080

(workrave:817772): Gtk-CRITICAL **: 11:14:23.980: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
[2024-02-07 11:14:23.981] [workrave] [info ] created plugin workrave.GenericDBusApplet
[2024-02-07 11:14:23.981] [workrave] [info ] created plugin workrave.GnomeSession
[2024-02-07 11:14:23.981] [workrave] [info ] created plugin workrave.X11SystrayAppletWindow
[2024-02-07 11:14:23.981] [workrave] [info ] created plugin workrave.IndicatorAppletMenu
@cuihaoleo
Copy link
Author

GDK_BACKEND=x11 /usr/bin/workrave will run it on X11 backend.

rcaelers added a commit that referenced this issue Mar 4, 2024
@rcaelers
Copy link
Owner

Fixed in 1.11 beta11

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

2 participants