summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/gtkhelpers.h
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2013-04-02 14:08:57 +0100
committerAlex Merry <dev@randomguy3.me.uk>2013-04-02 14:08:57 +0100
commita707ec228ff39d0df26d78f715561952d2f8c0b9 (patch)
tree6797bd9e90bc29082604a92d1242b978f8f3ad05 /tikzit/src/gtk/gtkhelpers.h
parent5254cf1689c5fffe917609224f173c827fbf419d (diff)
Prevent toolbox getting lost when minimising windows
On X, window managers don't like WM_TRANSIENT_FOR being altered while a window is visible; this meant that if you opened TikZiT and opened a second main window and minimised the main window that had focus, the toolbox and properties window would both disappear, with no way to get them back (well, almost - the properties window could be retreived with the menu item that shows/hides it). Tested with KWin, Metacity (Gnome 2's WM), Mutter (Gnome 3) and xfwm4 (XFCE 4). Metacity and Mutter still behave a little oddly - you have to click one of the main windows *twice* to get it to focus. KWin and xfwm4 work fine.
Diffstat (limited to 'tikzit/src/gtk/gtkhelpers.h')
-rw-r--r--tikzit/src/gtk/gtkhelpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tikzit/src/gtk/gtkhelpers.h b/tikzit/src/gtk/gtkhelpers.h
index 4da949b..e4b79b8 100644
--- a/tikzit/src/gtk/gtkhelpers.h
+++ b/tikzit/src/gtk/gtkhelpers.h
@@ -55,4 +55,6 @@ void widget_clear_error (GtkWidget *widget);
void text_buffer_clear_tag (GtkTextBuffer *buffer, GtkTextTag *tag);
+void utility_window_attach (GtkWindow *util_win, GtkWindow *parent_win);
+
// vim:ft=objc:sts=2:sw=2:et