Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Gtk TYPE_HINT_DIALOG
Gtk TYPE_HINT_DIALOG [message #560179] Tue, 21 September 2010 13:04 Go to next message
Oleg Andreev is currently offline Oleg AndreevFriend
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
Re: Gtk TYPE_HINT_DIALOG [message #560216 is a reply to message #560179] Tue, 21 September 2010 15:12 Go to previous message
Oleg Andreev is currently offline Oleg AndreevFriend
Messages: 2
Registered: September 2010
Junior Member
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 15:20]

Report message to a 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: Fri Apr 26 09:10:48 GMT 2024

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

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

Back to the top