This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Python script from: | |
| https://askubuntu.com/questions/665709/how-to-recover-offscreen-window-after-disconnecting-second-monitor/665899 | |
| Ubuntu 17.04 with 3 4K screens: | |
| $ python3 stackoverflow_665899_try0.py | |
| Traceback (most recent call last): | |
| File "stackoverflow_665899_try0.py", line 9, in <module> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.app.Service; | |
| import android.content.Intent; | |
| import android.graphics.ImageFormat; | |
| import android.hardware.camera2.CameraAccessException; | |
| import android.hardware.camera2.CameraCaptureSession; | |
| import android.hardware.camera2.CameraCharacteristics; | |
| import android.hardware.camera2.CameraDevice; | |
| import android.hardware.camera2.CameraManager; | |
| import android.hardware.camera2.CaptureRequest; | |
| import android.media.Image; |