Stupid braino in get_window_title (thanks Colin): window and icon
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 10 May 2003 09:05:41 +0000 (09:05 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
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.

git-svn-id: svn://svn.tartarus.org/sgt/putty@3173 cda61777-01e9-0310-a592-d414129be87e

unix/pterm.c

index 92adcb1..aba3ecb 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)