]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Stupid braino in get_window_title (thanks Colin): window and icon
authorSimon Tatham <anakin@pobox.com>
Sat, 10 May 2003 09:05:41 +0000 (09:05 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 10 May 2003 09:05:41 +0000 (09:05 +0000)
titles were being reported the wrong way round. Should fix half of
Debian bug #191751.

[originally from svn r3173]

unix/pterm.c

index 92adcb13780c76c14830f376d469ba2ab7a73ced..aba3ecbc02f598027cc5594f87aa835c6803fe77 100644 (file)
@@ -344,7 +344,7 @@ void get_window_pixels(void *frontend, int *x, int *y)
 char *get_window_title(void *frontend, int icon)
 {
     struct gui_data *inst = (struct gui_data *)frontend;
-    return icon ? inst->wintitle : inst->icontitle;
+    return icon ? inst->icontitle : inst->wintitle;
 }
 
 gint delete_window(GtkWidget *widget, GdkEvent *event, gpointer data)