Xlib - Focused window and notifies

This is a discussion on Xlib - Focused window and notifies within the Linux Programming forums, part of the Platform Specific Boards category; Hi, I'm coding my own window manager prototype and have this problem: When I'm not actively grabbing any button or ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    8

    Xlib - Focused window and notifies

    Hi,

    I'm coding my own window manager prototype and have this problem:

    When I'm not actively grabbing any button or pointer the notifies won't work correctly. When a pointer leaves the focused subwindow I don't get any notifies(unless the pointer moves to root-window) even though i'm grabbing them with XNextEvent

    As i'm not using XGrabPointer or XGrabButton, I have set XSelectInput from the root but even when I change this to the focused window and try to get leave-,enter- or motion-notifies it doesn't work.

    And yes i'm using all the event-masks with XSelectInput and none of them works unless in root-window.

    Thanks,

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    395
    please post the relevant part of your code so that we can take a look.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21