[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#2423: Microsoft Internet Explorer loses borders in KWM
From:       Keith Refson <Keith.Refson () earth ! ox ! ac ! uk>
Date:       1999-12-14 19:26:45
[Download RAW message or body]

Package: kwm
Version: kwm 0.14 patchlevel 3  

System: Solaris 7 (Sparc) KDE 1.1.2

Microsoft Internet Explorer browser does not interact correctly with
kfm, which displays all of its windows with no border decoration at
all.  This is because of the brain-damaged way it expects to interact
with a Motif-compliant window manager.  It sets the MWM hints to "no
decoration".

Here's a workaround hack which simply ignores the mwm hints for
windows of class "Iexplorer".  It might be worth adding code for
"Oexpress" too and possibly reading override classes from, eg an
environment variable.  My hack is just hard coded :(
You may also wish to remove the debugging "printf".

metropolis% diff -c kdebase-1.1.2/kwm/manager.C{,.ORIG}
*** kdebase-1.1.2/kwm/manager.C Mon Nov 22 18:23:38 1999
--- kdebase-1.1.2/kwm/manager.C.ORIG    Thu Jul  1 14:22:17 1999
***************
*** 3032,3043 ****
          // are only interested in suppressing decorations. This is
          // important for StarOffice-3.1īs floating toolbars which
          // would be shown within a strange floatwinshell otherwise.
!          fprintf(stderr,"KWM -- WINDOW:%x\nKWM -- NAME:%s\nKWM -- LABEL: %s\nKWM -- \
                CLASS: %s\n",
!                  c->window,c->name.length()>0?c->name.data():"", \
                c->label.length()>0?c->label.data():"",c->klass.length()>0?c->klass.data():"");
                
!         if( c->klass.contains("Iexplorer") > 0  )
!            c->decoration = KWM::normalDecoration;
!         else
!            c->decoration = mwm_hints->decorations?KWM::normalDecoration:0;
          KWM::setDecoration(c->window, c->getDecoration());
        }
        XFree((char *)mwm_hints);
--- 3032,3038 ----
          // are only interested in suppressing decorations. This is
          // important for StarOffice-3.1īs floating toolbars which
          // would be shown within a strange floatwinshell otherwise.
!         c->decoration = mwm_hints->decorations?KWM::normalDecoration:0;
          KWM::setDecoration(c->window, c->getDecoration());
        }
        XFree((char *)mwm_hints);
***************


Sincerely

Keith Refson
-- 
Dr Keith Refson,        "Paradigm is a word too often used by those who would
Dept of Earth Sciences      like to have a new idea but cannot think of one." 
Parks Road,                  -- Mervyn King, Deputy Governor, Bank of England
Oxford OX1 3PR, UK        
Keith.Refson@                       Tel: 01865 272026
             earth.ox.ac.uk         Fax: 01865 272072


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic