← Back to team overview

unity-design team mailing list archive

Re: Notifications are annoying when typing in the upper right corner of a window

 

Aurélien Gâteau wrote:
> David Barth wrote:
>   
>> I'm also very interested in Celeste's suggestion of having a monitor,
>> similar to what kwin does, to delay the display of notifications.
>>
>> Aurélien: could you take a look at this last one?
>>     
>
> kdelibs provides an API to interact with the window manager. This makes
> it easy to loop through all toplevel windows and check if any of them is
> a popup or combobox.I guess libwnck can do the same on the GNOME side.
>
> This is all done through NETWM, so it can probably be done for all NETWM
> compliant window managers.
>   
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.

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

Follow ups

References