esjeon / krohnkite

A dynamic tiling extension for KWin
MIT License
1.66k stars 66 forks source link

Android Emulator Window is shaking and blinking when used in tiled mode #72

Open chpasha opened 4 years ago

chpasha commented 4 years ago

Symptom Android Emulator window is shaking and blinking all the time until krohnkite is deactivated completely.

How to Reproduce Start android emulator from android sdk on krohnkite enabled screen

Environment

Notes Maybe the small floating tool window that appears outside of the main window could be the cause, perhaps it somehow makes krohnkite believe that the window geometry has changed. Unfortunately it doesn't seem to have an own window class or title, only window id, so I could not make krohnkite ignore it

esjeon commented 4 years ago

IIRC, other tiling WMs have problems with the emulator, too. The cause of the problem is the emulator, which uses an anti-pattern - periodic resize - to keep the window size fixed. The toolbar next to it has nothing to do with this.

A quick fix is to simply make the window float(Win + F). You can go further and ignore the window w/ title ("Android Emulator"), but this also has its own problems.

chpasha commented 4 years ago

ok, good to know. Unfortunately making it float defeats the purpose since I wanted it to share screen space with log window. Thank you anyway for quick response.

esjeon commented 4 years ago

share screen space with log window

Yeah, that's one good thing about tiling WM. I'll see if I can safely detect repeated resizing attempts and prevent infinite wiggling.

hiringManager commented 4 years ago

I've run into the same issue with krohnkite, using anbox and teamviewer, due to it trying to resize the window rapidly.

skyf0cker commented 3 years ago

IIRC, other tiling WMs have problems with the emulator, too. The cause of the problem is the emulator, which uses an anti-pattern - periodic resize - to keep the window size fixed. The toolbar next to it has nothing to do with this.

A quick fix is to simply make the window float(Win + F). You can go further and ignore the window w/ title ("Android Emulator"), but this also has its own problems.

Really helpful, thanks