~cmiller/ubuntu/trusty/icewm/translations-cause-crash-lp447883

« back to all changes in this revision

Viewing changes to src/wmclient.cc

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2008-03-10 21:24:25 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080310212425-562btgm3vbwzvhu0
Tags: 1.2.35-1
* New upstream release with one fix from CVS
* Automatic linking with gcc -lsupc++ fixed (failed in recent versions),
  also using "-Wl,--as-needed"
* Documentation update - README.Debian reordered by importance
* Changed font defaults in Xft specifications to consider Bitstream Vera
  family as alternative font (closes: #360060, #319191, #349952, #456463),
  also documented how to configure alternative fonts
* Added Bernhard's iconify_on_wm_hints as dpatch (closes: #428566, #389919)
* force use of bash in upstream's Makefile to keep the installation
  magic as-is (closes: #459181)

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
    if (!prop.wm_transient_for)
183
183
        return;
184
184
 
185
 
    Window newTransientFor;
 
185
    Window newTransientFor = 0;
186
186
 
187
187
    if (XGetTransientForHint(xapp->display(),
188
188
                             handle(),
194
194
            /* !!! TODO: check for recursion */
195
195
           )
196
196
            newTransientFor = 0;
 
197
    }
197
198
 
198
 
        if (newTransientFor != fTransientFor) {
199
 
            if (fTransientFor)
200
 
                if (getFrame())
201
 
                    getFrame()->removeAsTransient();
202
 
            fTransientFor = newTransientFor;
203
 
            if (fTransientFor)
204
 
                if (getFrame())
205
 
                    getFrame()->addAsTransient();
206
 
        }
 
199
    if (newTransientFor != fTransientFor) {
 
200
        if (fTransientFor)
 
201
            if (getFrame())
 
202
                getFrame()->removeAsTransient();
 
203
        fTransientFor = newTransientFor;
 
204
        if (fTransientFor)
 
205
            if (getFrame())
 
206
                getFrame()->addAsTransient();
207
207
    }
208
208
}
209
209
 
572
572
#endif
573
573
 
574
574
void YFrameClient::setWindowTitle(const char *title) {
575
 
    delete[] fWindowTitle; fWindowTitle = newstr(title);
576
 
    if (getFrame()) getFrame()->updateTitle();
 
575
    if (title == 0 || fWindowTitle == 0 || strcmp(title, fWindowTitle) != 0) {
 
576
        delete[] fWindowTitle; fWindowTitle = newstr(title);
 
577
        if (getFrame()) getFrame()->updateTitle();
 
578
    }
577
579
}
578
580
 
579
581
void YFrameClient::setIconTitle(const char *title) {
580
 
    delete[] fIconTitle; fIconTitle = newstr(title);
581
 
    if (getFrame()) getFrame()->updateIconTitle();
 
582
    if (title == 0 || fIconTitle == 0 || strcmp(title, fIconTitle) != 0) {
 
583
        delete[] fIconTitle; fIconTitle = newstr(title);
 
584
        if (getFrame()) getFrame()->updateIconTitle();
 
585
    }
582
586
}
583
587
 
584
588
#ifdef CONFIG_I18N