Main index > Python programming > move an unmanaged window

By cs-cam (Desklet Author), on Thu Aug 25 05:55:14 2005: move an unmanaged window.

I'm trying to use adesklets to create an on-screen menu, sort of like Xosd but I think I can make this work with better looking results and with less hassle. The problem I'm running into is how to position an unmanaged window. I can't find any reference in site-packages/adesklets as to how desklets are moved around and Alt-Click doesn't let me move it either.

I'd really like a way to specify in the script the start-up position? Am I missing something simple? I could window_resize(1600,1200) but I think that's probably not the answer, or is it? The computer wouldn't be used while the menu was up anyway, that'd mean I was far enough away that I was using my LIRC remote...

By syfou (Core Developer & Desklet Author), on Thu Aug 25 14:24:11 2005.

Well, you are not in luck there... Unmanaged window cannot be moved around programmatically (only the user can do so using the contextual menu: left click > Move), nor can the position be known though the API. These are elements I choose not to expose, because I felt it was the user sole prerogative to choose where and how to place his desklets.

Of course, I could imagine many dirty tricks to bypass this, but I do not think it would be a good idea. Making the desklet cover the entire screen is not good either, since it would disrupt too many things (not speaking of resources usage). Besides, unmanaged desklets windows do not have the proper focus to make suitable menus (since they stay on the bottom of the windows stack).


adesklets is proud to be hosted on:

SourceForge.net Logo

Back to adesklets.sf.net.