Click to See Complete Forum and Search --> : 2 Close Buttons (icewm)


zGoRNz
01-14-2001, 04:34 AM
<flame>icewm is the best wm</flame>
but i always get anoyed that to close a window i gotta go all the way to the right side.
so i switched to the left, then got anoyed with that too.

so i tried editing my pref file to have close on both sides, then the title bars we screwed up and the one on the left didn't work

so i went to the source, the icewm source

I never use the hide button so i used that as my victium, but you can use any.

in file icewm-1.0.5/src/wmframe.cc
line 129

it reads:
fHideButton = new YFrameButton(fTitleBar, this, actionHide, actionHide);

if we change the first actionHide to actionClose, and put the hide button on our window title, we can now close from the hide button or the close button!

and i don't even know why but it even gets the close icon!

kick butt

- out -



------------------
Dunt Dunt Duh...
GoRN To The Rescue,
Yet Again
zGoRNz@yahoo.com
aim: GoRNToTheRescue

Sterling
01-14-2001, 10:00 AM
Icons are probably assigned by button action... You may want to write the IceWM team, and ask them about the possibility of having multiple buttons of the same type on titlebars in future releases.

------------------
-Sterling
"There is no Linuxnewbie.org cabal..."

Craig McPherson
01-14-2001, 05:43 PM
Yes, icewm is very cool.

(y'know, you can just hit alt-F4 to close anything, just like in Windows)

zGoRNz
01-16-2001, 02:01 AM
depending on your config it might not be alt f4, mine is alt-w (like the /mac/, it's easy to hit, alt-e rollsup, alt-r maximize, it's all good)

but if the window isn't active then you gotta move the mouse a long way....

------------------
Dunt Dunt Duh...
GoRN To The Rescue,
Yet Again
zGoRNz@yahoo.com
aim: GoRNToTheRescue

Sterling
01-16-2001, 09:43 AM
Or you can just switch to it using the keyboard...

------------------
-Sterling
"There is no Linuxnewbie.org cabal..."