krohnkite icon indicating copy to clipboard operation
krohnkite copied to clipboard

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

Open chpasha opened this issue 4 years ago • 5 comments

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

  • Distro: Debian 10
  • KWin version: 5.14.5
  • Krohnkite version: 0.7
  • List of KWin scripts in use: [Enforce Window Decoration on GTK]

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

chpasha avatar Apr 14 '20 19:04 chpasha

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.

esjeon avatar Apr 15 '20 03:04 esjeon

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.

chpasha avatar Apr 15 '20 06:04 chpasha

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.

esjeon avatar Apr 15 '20 11:04 esjeon

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

hiringManager avatar May 10 '20 16:05 hiringManager

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

skyf0cker avatar Jul 04 '21 14:07 skyf0cker