Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.
/ uniconize Public archive

A workaround for Wine games blackscreening on sway

License

Notifications You must be signed in to change notification settings

neXromancers/uniconize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecation notice

This program is no longer needed because wlroots and sway have gained the necessary functionality to fix the problem on their own. 🥳

uniconize (not a unicorn)

This a is fix for Wine games blackscreening on sway and other tiling window managers that don't support iconized windows.

Installation

Usage

Just run this program! On sway, you'll want to throw exec uniconize somewhere in your configuration. There are no options.

Explanation

i3 and sway are tiling window managers and do not support iconized windows by design. Unfortunately for them, the ICCCM standard says that they must. That said, for native applications, it's fine to ignore iconization requests because, by X11 convention, state will not change until the window manager says so.

However, Windows applications running in Wine are more problematic. On Windows, when the application sets the iconized flag, the window is guaranteed to be iconized, without any feedback from the window manager. Wine can therefore not conform to the convention, and can only blindly assume that the application has been iconized.

This is a problem on i3 and sway, as because they do not support such a state, they have no mechanism to bring a client back from it. And since focusing out of a fullscreen window will immediately iconize it on Windows, games tend to get stuck into that state pretty easily.

As it turns out though, it is sufficient to tell the game that it's been uniconized to bring it back from the dead, without resorting to Wine's virtual desktop. i3 already includes this behavior, but fixing this in sway appears more complicated, so I've opted to write this little program instead.

For more information, please take a look at the following links:

About

A workaround for Wine games blackscreening on sway

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages