LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Using IceWM with LXDE (https://www.linuxquestions.org/questions/linux-desktop-74/using-icewm-with-lxde-4175416231/)

Hidden Windshield 07-11-2012 06:05 PM

Using IceWM with LXDE
 
I have a desktop with Lubuntu installed. I prefer to use focus-follows-mouse mode (which OpenBox supports), but I don't want to raise the window when I click the client area (which, as far as I can tell, OpenBox doesn't support).

So, fine, I see that IceWM does. So, I install the icewm package, edit "/etc/xdg/lxsession/Lubuntu/desktop.conf" and change "window_manager=openbox-lubuntu" to "window_manager=icewm", log out, and log back in. Hey, presto, I'm using IceWM with LXDE.

But, there are two major problems:
  1. There's an extra panel hidden behind the normal LXDE panel, with its own menu, task manager, notification area, etc. It was apparently put there by IceWM. I thought a window manager was just supposed to manage windows? Normally, I would just ignore it, but it's intercepting my shortcut keys.
  2. I can't actually get IceWM into focus-follows-mouse mode. Everything I've read says to put "ClickToFocus=0" and "RaiseOnClickClient=0" in "~/.icewm/preferences", but it ignores anything I put there. How do I get it to do the one thing I installed it to do?

ShadowCat8 07-11-2012 07:53 PM

Greetings,

Well, I am running LXDE over Openbox on my system here, and I have that exact behavior without issue.

For me, I went to the Start button => Preferences => Openbox Configuration Manager => Mouse, and then on that tab, at the very top is the option to have the focus follow the mouse, and third checkbox below that one is the option "Raise windows when the mouse pointer moves over them". I have that unchecked and it works fine for me.

Do you still have Openbox installed or did you remove it when you loaded IceWM?

HTH. Let us know.

Hidden Windshield 07-12-2012 01:49 PM

Yes, I found all of that. My issue with OpenBox is not raise on mouse over, but raise on mouse click. I want to be able to interact with a window, both mouse and keyboard, without raising it to the top of the stack.

ShadowCat8 07-13-2012 03:33 PM

And, that's how it works for me... exactly.

I often *have* to work in certain windows without raising them to the top on my desktops. Especially when one of the windows is a remote session. In a remote session, I usually only need to watch the output of one terminal on the remote system, so I have that at the bottom as I work in other windows over it. Then, when I need to interact with the remote system, I just bring the mouse over the remote session window, it grabs focus on it's own, and I am able to type and move the remote mouse around without bringing the remote session window to the top. Of course, if I have to see the entire remote desktop after starting the session, I just click on the window and it brings it to the top.

My configuration on the 'Mouse' tab of the Openbox Configuration Manager is as follows:
Focusing Windows:
  • Checked - Focus windows when the mouse pointer moves over them
  • Unchecked - Move focus under the mouse when switching desktops
  • Unchecked - Move focus under the mouse when the mouse is not moving
  • Unchecked - Raise windows when the mouse pointer moves over them
  • Delay before focusing and raising windows: 200 ms
Titlebar:
  • Double click on the titlebar: Shades the window
  • Double click time: 200ms

HTH. Let us know.

Hidden Windshield 07-14-2012 12:56 PM

That's very interesting, because whenever I click a window in OpenBox, it raises the window to the top of the stack, period, even though I have the same setup you do. (Well, ok, I have "Double click on the titlebar: Maximizes the window" rather than shading it, but I somehow don't think that would have any effect.)

However, as I was playing around with this, I discovered "~/.config/openbox/lubuntu-rc.xml":

Code:

    <context name="Client">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
    </context>

So, I wondered what would happen if I took out those "Raise" actions out of the XML. So I did, and sure enough, it worked. I have no idea how those got there, since I haven't edited that file since the system was installed, except through the OpenBox Configuration Manager.

Anyway, thanks for the help.

pgraham 01-02-2014 01:46 PM

Thanks for this, it is exactly what I was looking for. Although I left the middle click binding so that I can raise a window with a middle click.


All times are GMT -5. The time now is 03:13 AM.