General TC > Programming & Scripting - Unofficial

"Topside" titlebar version of flwm

<< < (4/6) > >>

MikeLockmoore:
fladd:

I like the option of Alt key + left-click and drag to reposition a window, as found in some other WMs, which is very useful if your window somehow gets placed where the title bar is not on-screen.  However, I don't know how easy it would be to implement in flwm.  Normally, if you click over the content part of an application, the event is sent to the content window's event handler, and I'm not sure the flwm window frame's event handler gets a chance to hook it.  I will probably try to implement it, and if it is doable, I will at least make it a compile-time option.  The core team may decide not to include it in the base version, however.  And I may not be able to figure out how to do it anyway. My knowlege of the underlying TinyX and X-Windows is pretty limited.  :-\  We'll see.

As for the titlebar location (left or top), the modified flwm must be compiled for one or the other, but not both, so you would not be able to simply make a configuration change somewhere and restart.  This was to keep the base version of flwm as small as possible.

However, I think the core team will make a left-side version available as an extension, so if you really prefer it like that, you simply need to install the left-side version of flwm and reboot.  This left-side version will still have some of the other changes roberts and I made to better integrate with TC.
--
Mike

clach04:

--- Quote from: MikeLockmoore on September 15, 2009, 09:10:33 AM ---3) Sorry, I don't recall what alt+enter does in the standard flwm.  I guess I don't use that right now.  What is it used for and what kind of substitute would be useful?

--- End quote ---

alt+enter is Minimize window. flwm is quite aggressive in how it grabs alt-enter though, for instance if using  rdesktop in fullscreen mode (rdesktop -f) one is supposed to use ctrl+alt+enter to exit out of full screen mode.  flwm (in TC 2.3) seems to ignore the ctrl and try to minimize which fails, leaving rdesktop in full screen mode. I've had to use ctrl+alt+baskspace to "quit" out ;-) NOTE -K flag to rdesktop can help here.

Back to the question, I think different modifiers would be better to avoid collisions with regular applications, E.g. maybe use the "Windows" key (Super_R)? Now I happen to be using  a laptop with out a Windows key but I'm OK with using xmodmap to remap one of my Alt keys (I don't need an AltGr key). CrunchBang linux uses the Windows key for most of the shortcuts it uses and I think it works well.

Chris


MikeLockmoore:
clach04: It seems that fltk does not recognize the "Windows" key, at least not as compiled in TC, so no use for that.  :-\

I've been making good progress on flwm behind the scenes.  I've implemented some Ctrl + Alt + (key) combos to move and resize the screen in various ways, hopefully intuitive:

Ctrl + Alt + (arrow) : Move window a bit (at least 4 pixels, or 1/20th of the "open" space)

Ctrl + Alt + '=/+': Make window larger by 32 pixels in each direction

Ctrl + Alt + '-': Make window smaller by 32 pixels in each direction

Ctrl + Alt + ',/<' : Make window narrower by 32 pixels

Ctrl + Alt + './>' : Make window wider by 32 pixels

Ctrl + Alt + PageUp or 't': Make window taller by 32 pixels

Ctrl + Alt + PageDn or 's': Make window shorter by 32 pixels

I've also implemented better support for colored window titles and title text color.  (See attached image).  This requires -fg (color) and -bg (color) options to be added to the .xsession file:


--- Code: ---Xvesa -br -screen 1024x768x32 -shadow -mouse /dev/input/mice,5 -nolisten tcp -I 2>&1 > /dev/null &
waitforX
"$DESKTOP" -fg white -bg darkblue 2>/tmp/wm_errors &
export WM_PID=$!
[ -n "$THEME" ] && cp /opt/jwmThemes/"$THEME" .jwmrc-theme
if [ -n "$BACKGROUND" ]; then
  setbackground image /opt/backgrounds/"$BACKGROUND"
else
  [ -x ./.setbackground ] && ./.setbackground
fi
[ "$ICONS" == "wbar" ] && /usr/bin/wbar.sh
[ -x ./.mouse_config ] && ./.mouse_config &
[ "$DESKTOP" == "flwm" ] && flit &


--- End code ---
Now I see a vast array of flwm themes coming.   :P
--
Mike L.

curaga:
Mike, I recently thought to make the fltk-xft extension as it has not yet been made. Built libfltk with --enable-xft --enable-threads with  CXXFLAGS="-Os -s -march=i486 -mtune=i686 -pipe -fomit-frame-pointer -fno-rtti -fno-exceptions".

Everything else works, but flwm segfaults when clicking on anything in the menu (until that point things work out fine, flwm using antialiased fonts as well). All other fltk apps in the base run fine.

This is with the flwm in 2.3.1, so might be related to the left-side bar. Or might be a general bug in flwm. Could you check? If you wish to use the extension I built, I'll PM you a copy.


BTW: what is the button with nothing in it, in the latest screenshot? If it is a minimize button, why not put an underscore in it?

Edited to remove typo (s/no-extensions/no-exceptions/g)

Juanito:
99% sure it's nothing to do with this, but I've stopped using "-fno-rtti -fno-extensions" after it caused problems with other stuff.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version