Page 1 of 1
import does not work with right click menus
Posted: 2012-10-04T06:59:58-07:00
by ernetas
import command from imagemagick package cannot grab a screenshot when there is an active right click menu.
I'm using newest software I can:
Fluxbox 1.3.2
Transmission 2.71
Imagemagick 6.7.9.8
Steps to reproduce:
1. Launch Transmission and xterm.
2. Run "sleep 2; import screenshot.jpg" and in the meantime right click in Transmission window any torrent.
3. Get the error:
import: unable to grab mouse `': Resource temporarily unavailable @ error/xwindow.c/XSelectWindow/9047.
Re: import does not work with right click menus
Posted: 2012-10-23T13:50:10-07:00
by ernetas
Bump.
Re: import does not work with right click menus
Posted: 2012-11-27T22:50:27-07:00
by anthony
This is not a bug in Imagemagick, but in how the X window system operates.
Some applications create menus by 'grabbing the mouse pointer' for its private use. While in this state "import" can not do anything, In fact no other application can do anything until either the application frees the 'grab' or is killed.
That is just the way things are.
Re: import does not work with right click menus
Posted: 2012-11-28T01:05:55-07:00
by ernetas
anthony wrote:This is not a bug in Imagemagick, but in how the X window system operates.
Some applications create menus by 'grabbing the mouse pointer' for its private use. While in this state "import" can not do anything, In fact no other application can do anything until either the application frees the 'grab' or is killed.
That is just the way things are.
But scrot is able to grab a screenshot even when a right click menu is called.
Re: import does not work with right click menus
Posted: 2012-11-28T05:58:45-07:00
by magick
ImageMagick utilizes the X11 API for screen shots. Some information may not be defined to X11. Other programs may grab the information directly from the framebuffer where it is.
Re: import does not work with right click menus
Posted: 2012-11-28T07:04:58-07:00
by ernetas
magick wrote:ImageMagick utilizes the X11 API for screen shots. Some information may not be defined to X11. Other programs may grab the information directly from the framebuffer where it is.
So wouldn't it be better to utilise framebuffer and get more functions?
Re: import does not work with right click menus
Posted: 2012-11-28T07:30:05-07:00
by magick
ImageMagick is designed to be cross-platform. Framebuffer access is very different from OS to OS. We could include an optional delegate library to access the framebuffer, however given our current workload, we don't see it as a priority. However, ImageMagick is open-source. Feel free to code up a solution and submit it to patches @ imagemagick dot org and we'll look towards adding it to a future release of ImageMagick.
Re: import does not work with right click menus
Posted: 2012-11-28T22:32:20-07:00
by anthony
Also frame buffers don't always hold all the information that is on the display. Some GLX (3D display) and Video Output, often go directly to the video display (for performance) without being stored in the X window Frame Buffer (for easier redraw of mostly static display data.
Getting screenshots in ALL situations is actually getting harder and harder in modern systems, and as doing remote GUI applications no longer always works.