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 Fri 24 Oct 2014, 14:18
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 Posts_count_1  
Author Message
Rattlehead


Joined: 11 Sep 2008
Posts: 215
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:   Sort by:   
Page 1 of 1 Posts_count_1  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0385s ][ Queries: 12 (0.0061s) ][ GZIP on ]