tsoding / boomer

Zoomer application for Linux
MIT License
440 stars 39 forks source link

Live update feature with window tracking crashes the application #85

Closed rexim closed 4 years ago

rexim commented 4 years ago

Steps to reproduce

  1. Compile boomer with nimble build -d:live -d:mitshm -d:select -d:windowed. -d:mitshm is optional. A similar problem occurs without it.
  2. Select a window to track
  3. Move the tracked window outside of the screen

Observed

The application crashed with

Visual 320 selected
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  130 (MIT-SHM)
  Minor opcode of failed request:  4 (X_ShmGetImage)
  Serial number of failed request:  962
  Current serial number in output stream:  962

in case of no -d:mitshm

Visual 320 selected
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  73 (X_GetImage)
  Serial number of failed request:  684
  Current serial number in output stream:  684

Expected

The application does not crash keeps displaying the tracked window.

rexim commented 4 years ago

Accidentally fixed by #87 and #91