PDA

View Full Version : How to limit draggable region for application windows like GNOME Panel



C--
March 12th, 2009, 09:07 PM
Hi, I am developing a Java application for use in GNOME and maybe KDE that requires a persistent view at the top of the screen that a user cannot resize, move, or destroy. However, I am having issues in that a user can drag a window up behind the view, or maximize a window such that the title bar is behind this view, which means that the window's titlebar is no longer accessible and now the window cannot be moved unless the alt button is pressed.

I would like to know if there is a way to prevent users from dragging windows behind my Java application's view or maximizing a window behind the view, much like how the GNOME Panel behaves. Are there any Java functions or GNOME/Linux OS functions I can call?

slavik
March 13th, 2009, 01:47 AM
you have to do straight X calls afaik.

C--
March 13th, 2009, 03:17 PM
you have to do straight X calls afaik.

I see, thank you. Would anyone happen to know the location of related documentation?

rg4w
October 14th, 2010, 02:47 PM
I see, thank you. Would anyone happen to know the location of related documentation?

I would be grateful if someone could share where I could find that as well, as I'm facing a similar challenge and the folks on my team haven't yet turned up the API for this.

TIA -