Results 1 to 4 of 4

Thread: How to limit draggable region for application windows like GNOME Panel

  1. #1
    Join Date
    Sep 2008
    Beans
    87
    Distro
    Ubuntu 10.04 Lucid Lynx

    How to limit draggable region for application windows like GNOME Panel

    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?

  2. #2
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to limit draggable region for application windows like GNOME Panel

    you have to do straight X calls afaik.
    I am infallible, you should know that by now.
    "My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall
    (02:15:31 PM) ***TimToady and snake oil go way back...
    42 lines of Perl - SHI - Home Site

  3. #3
    Join Date
    Sep 2008
    Beans
    87
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to limit draggable region for application windows like GNOME Panel

    Quote Originally Posted by slavik View Post
    you have to do straight X calls afaik.
    I see, thank you. Would anyone happen to know the location of related documentation?

  4. #4
    Join Date
    Nov 2009
    Location
    Los Angeles
    Beans
    393
    Distro
    Ubuntu

    Re: How to limit draggable region for application windows like GNOME Panel

    Quote Originally Posted by C-- View Post
    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 -

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •