invert colors of application in X11
===

I am aware of inverting X11 window using the following command

    xcalib -invert -alter

However, I could not find a command for inverting the colors of an individual application. 

I tried inverting the colors of an application by running the application inside Xephyr or Xnest and trying to run xcalib command inside of that, but it failed stating:

    DISPLAY=:1 xcalib -invert -alter
    Xlib:  extension "XFree86-VidModeExtension" missing on display ":1".
    Error - Unable to query gamma ramp size

Then I learned that Xnest can be started with XFree86-VidModeExtension, and tried the same as follows:


    Xnest -ac -br +extension "XFree86-VidModeExtension"

Then I tried xcalib -invert -alter command on the display :1 again. It failed

I am running the ubuntu VM inside Virtualbox and running dwm window manager in it

Is there any way to run xcalib inside a nested X