Results 1 to 7 of 7

Thread: Qt4: reserve screen space / prevent overlapping

  1. #1
    Join Date
    Jan 2007
    Location
    Milkyway
    Beans
    669
    Distro
    Kubuntu 12.04 Precise Pangolin

    Qt4: reserve screen space / prevent overlapping

    Hello there,

    I posted this question on several forums already, without much success so far. I am going to try my luck here anyway.

    I am trying to find out how to prevent window overlapping or reserve space for a window using Qt4. The idea is to be able to make a desktop panel/dock application, much like gnome-panel or docky, cairo-dock. I have found how to do this with Gtk on StackOverflow

    I suppose the idea is to tell X Window the application needs reserved space. Window properties, as described in in the freedesktop standards, should be set with _NET_NW_STRUT / _NET_NW_STRUT_PARTIAL. I have found no way yet to do that with Qt. QtWindowFlags offer the possibility to set some window properties by not STRUT

    Is there anyone here with an idea? NB: i am using Python for my app, but that shouldn't make much difference.

    Cheers.
    Benjamin

  2. #2
    Join Date
    Jan 2007
    Location
    Milkyway
    Beans
    669
    Distro
    Kubuntu 12.04 Precise Pangolin

    Angry Re: Qt4: reserve screen space / prevent overlapping

    Hi there,

    I get no luck on the entire internet with my question
    Is there any generic way to address window overlap on X window systems?
    Can i get Compiz to reserve space for an application?

    Thanks.
    Benjamin

  3. #3
    Join Date
    Oct 2005
    Location
    Davao, Philippines
    Beans
    4,830

    Re: Qt4: reserve screen space / prevent overlapping

    hello, this is a Kwin related issue and has probably nothing to do with Qt4 per se.

  4. #4
    Join Date
    Jan 2007
    Location
    Milkyway
    Beans
    669
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Qt4: reserve screen space / prevent overlapping

    Quote Originally Posted by loell View Post
    hello, this is a Kwin related issue and has probably nothing to do with Qt4 per se.
    Could you elaborate please?
    Isn't Kwin KDE specific? How about Gnome DE then? or any other Unix DE?

  5. #5
    Join Date
    Jun 2006
    Beans
    596
    Distro
    Kubuntu

    Re: Qt4: reserve screen space / prevent overlapping

    This has nothing to do with gtk/qt per se; it is about sending hints to the wm (if it is ewmh compliant).

    I would look at python-xlib, or a project like pekwm:
    http://pekwm.org/projects/pekwm

    Why not try their mailing list? If anyone knows about this stuff, it would be those guys.

  6. #6
    Join Date
    Jan 2007
    Location
    Milkyway
    Beans
    669
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Qt4: reserve screen space / prevent overlapping

    Quote Originally Posted by krazyd View Post
    This has nothing to do with gtk/qt per se; it is about sending hints to the wm (if it is ewmh compliant).
    That's indeed what i reckoned as well.

    Quote Originally Posted by krazyd View Post
    I would look at python-xlib, or a project like pekwm:
    http://pekwm.org/projects/pekwm

    Why not try their mailing list? If anyone knows about this stuff, it would be those guys.
    You mean the Pekwm mainlinglist?
    Is there no X wm team?

  7. #7
    Join Date
    Jun 2006
    Beans
    596
    Distro
    Kubuntu

    Re: Qt4: reserve screen space / prevent overlapping

    Quote Originally Posted by jesuisbenjamin View Post
    Is there no X wm team?
    There is, but I don't know if they maintain python bindings (I don't think they do). There's no harm in asking either way

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
  •