Gtk TYPE_HINT_DIALOG [message #560179] |
Tue, 21 September 2010 13:04 |
Oleg Andreev Messages: 2 Registered: September 2010 |
Junior Member |
|
|
Sorry, if I am mistaken with the choice of forums for posting the following question.
SWT/GTK implementation contains the following code in org/eclipse/swt/widgets/Shell.java:
if (!isUndecorated ()) {
OS.gtk_window_set_type_hint (shellHandle, OS.GDK_WINDOW_TYPE_HINT_DIALOG);
} else {
if (OS.GTK_VERSION >= OS.VERSION (2, 2, 0)) {
OS.gtk_window_set_skip_taskbar_hint (shellHandle, true);
}
}
Could anyone explain, why DIALOG hint is not set for undecorated windows?
This behavior (leaving NORMAL hint on undecorated windows) leads to the following unpleasant effects.
When regular dialog with decorations (such as Open resource) is focused, WM panel (like GNOME or Xfce panel applets) shows that Eclipse main window is focused.
However, when undecorated dialog (such as Information hover or Switch editor) is focused, WM panel shows that the main Eclipse window loses focus. This leads to annoying flicker.
Sorry for poor explanation of the problem.
Best regards,
Oleg
|
|
|
|
Powered by
FUDForum. Page generated in 0.03391 seconds