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

Modal dialogs make xmonad's cpu usage spike up #452

Closed
3 tasks done
jabuxas opened this issue Apr 20, 2023 · 3 comments
Closed
3 tasks done

Modal dialogs make xmonad's cpu usage spike up #452

jabuxas opened this issue Apr 20, 2023 · 3 comments

Comments

@jabuxas
Copy link

jabuxas commented Apr 20, 2023

Problem Description

When program sends focus to a modal dialog, the root program has its borders flickering, xmonad cpu usage spikes up, focus follows mouse doesn't really work — I have to mod+m1 to get focus back to dialog.

Steps to Reproduce

  1. Open Prism Launcher app (needs to have a minecraft account)
  2. Click to play offline, it will spawn a dialog asking for username.
  3. Bug will happen

Configuration File

module Main (main) where

import XMonad
import XMonad.Hooks.EwmhDesktops

main :: IO ()
main = xmonad $ ewmh def

Checklist

  • I've read CONTRIBUTING.md

  • I tested my configuration

    • With xmonad commit eeac754
    • With xmonad-contrib commit 673de11ca876a4a58cae3a4d52e36260f66aa6cc

Attached video demonstrating it: https://youtu.be/hlJFDnnAQP4

@slotThe
Copy link
Member

slotThe commented Apr 21, 2023

What's a modal dialog? Also, this seems related to the game issues you are experiencing in #450; I propose taking this conversation over there (as I've also never heard of someone experiencing the same issues)

@slotThe slotThe closed this as completed Apr 21, 2023
@geekosaur
Copy link
Contributor

geekosaur commented Apr 21, 2023

A modal dialog is one which blocks the main window while active. In this case, the main window sets focus back to the dialog when it receives focus, leading to a focus loop.

Modal dialogs are permitted but rare in the X11 world because they break the asynchronous model. They're more common on Windows which is why they're coming up with Wine games.

@jabuxas
Copy link
Author

jabuxas commented Apr 21, 2023

prism launcher specifically though isn't wine nor is minecraft. it is somewhat related to #450, but not really the same, since disabling ewmh fixes this one, while disabling fullscreenSupport and Hacks one fixes the other one.

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

3 participants