Aurélien Gâteau wrote:
Ah ok, thanks for checking. I think we want to have a function to specifically check for the cases mentioned, ie dropdown or context menu.David Barth wrote: Looking at the window types defined in libwnck: typedef enum
{
WNCK_WINDOW_NORMAL, /* document/app window */
WNCK_WINDOW_DESKTOP, /* desktop background */
WNCK_WINDOW_DOCK, /* panel */
WNCK_WINDOW_DIALOG, /* dialog */
WNCK_WINDOW_TOOLBAR, /* tearoff toolbar */
WNCK_WINDOW_MENU, /* tearoff menu */
WNCK_WINDOW_UTILITY, /* palette/toolbox window */
WNCK_WINDOW_SPLASHSCREEN /* splash screen */
} WnckWindowType;
It seems that the presence of a MENU or SPLASHSCREEN could delay
notifications a bit. Dialogs may also be considered, though I would
like to collect some data on the frequency of the dialog type being
misused by applications. Testing if the dialog is modal should be more
accurate to avoid false positives.David |