Re: [Sawfish] Re: class name

[ Thread Index | Date Index | More lists.tuxfamily.org/sawfish Archives ]


It works, but if the window itself changes it's class (unlikely) it will be reset. I'm pretty sure the WM is not meant to change a window's class, but who cares about standard-specifications? We've broken them several times (though, only with optional features).

Chris

Am 2013-01-10 05:24, schrieb dmg:
oops. sorry for the wrong message ;)

but through trial and error I was able to answer my own question:


(defun dmg-rename-class (w y)
  (interactive "%W\nsNew class Name:")
  (set-x-text-property w 'WM_CLASS (vector y y ""))
)

it seems to work, and hopefully will not have bad side effects :)

On Wed, Jan 9, 2013 at 1:40 PM, dmg <dmg@xxxxxxx> wrote:
no lo de la invitacion, sino lo de ir a londres.

On Wed, Jan 9, 2013 at 12:38 PM, D M German <dmg@xxxxxxx> wrote:

hi there,

does anybody know if it is feasible to rename the class of a window? I don't think there is a function to do it, but I wonder if it is possible
at all.


--
Daniel M. German "Science clears the fields on which
    W. Heisenberg ->               technology can build. "
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .

--
Sawfish ML


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/