Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 22 Nov 2014, 20:17
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Simple way to draw a rectangle at higher level?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
Rattlehead


Joined: 11 Sep 2008
Posts: 222
Location: Madrid, Spain

PostPosted: Thu 10 Oct 2013, 21:36    Post subject:  Simple way to draw a rectangle at higher level?  

My window manager is Ratpoison, a light, configurable tiling manager, that I find ideal for me. However, it lacks a feature that would be very nice: showing with a rectangle which window is currently selected, when you have a mosaic of several of them.

Ratpoison allows interactive commands from keyboard (my configuration file is full of calls to small bash scripts); also, it has features that allow you to get the dimension in pixels of the current window, and its X11 window ID. Having those parameters, I thought it would not be difficult making a small program that draws a rectangle for the current window, calling it every time there is a change.

I'm thinking of something very quick and dirty, the next thing more refined than drawing the rectangle yourself with a crayon on the screen. Smile However, I've been reading the documentation on X11, xlib and the like, and I find it all awfully complicated. I wonder if someone knows of some simple program that could receive the dimensions of the rectangle (and a configurable color, ideally), and do the dirty job with X. I can program in Bash, but if it has to be in C, and it is simple enough, I've been thinking of learning it for some time and maybe this could be the occasion to start. Thank you if you know of some resource or can help.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0351s ][ Queries: 11 (0.0035s) ][ GZIP on ]