How to change mouse cursor to standard hand cursor

2015-07-15 Thread Cosmin Apreutesei
Hi, I need to change the mouse pointer for a window to the standard hand cursor (I need a toolkit-independent solution, preferably XCB-based). I noticed that loading the "cursor" font and changing the window attribute XCB_CW_CURSOR to XC_hand2 loads an ugly and unfamiliar hand cursor, not the def

missing pieces for a SDL-like library

2015-07-15 Thread Cosmin Apreutesei
Hi, I'm making a SDL-like library and I'm trying to find a common feature set across Windows, OSX and Linux, and I'm missing a few pieces on the X backend that are already available on the WinAPI and Cocoa backends. None of these are show-stoppers by any means, but I would like know at least if th

Dumping root background (possible enhancement to xwd)

2015-07-15 Thread John Lane
Hello. I haven't posted here before but I am a long-time user. I hope this is the right place for my question. I had a need to get a copy of the root background (the "desktop wallpaper") as it currently looks: not the original image that may have been tiled/centered/stretched but how it actually

Re: missing pieces for a SDL-like library

2015-07-15 Thread Cosmin Apreutesei
[I'll dump more questions here so that I don't create too many conversation threads if that's ok] - Is there an XAppFocusOut event similar to Windows WM_ACTIVATEAPP[1] or OSX applicationDidResignActive[2] ? [1] https://msdn.microsoft.com/en-us/library/windows/desktop/ms632614(v=vs.85).aspx [2]