Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Gtk TYPE_HINT_DIALOG
Gtk TYPE_HINT_DIALOG [message #560179] Tue, 21 September 2010 09:04 Go to next message
Eclipse UserFriend
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
Re: Gtk TYPE_HINT_DIALOG [message #560216 is a reply to message #560179] Tue, 21 September 2010 11:12 Go to previous message
Eclipse UserFriend
AFAIK, this bug is relevant to my question: https://bugs.eclipse.org/bugs/show_bug.cgi?id=289346

EDIT: yes, the patch attached in bug solves the problem Smile Can we expect the proposed patch be merged anytime soon?

[Updated on: Tue, 21 September 2010 11:20] by Moderator

Previous Topic:swt browser don't download and display images
Next Topic:Table.getColumn(0).pack() is 2 too low
Goto Forum:
  


Current Time: Tue Jul 08 19:37:22 EDT 2025

Powered by FUDForum. Page generated in 1.02625 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top