jwm icon indicating copy to clipboard operation
jwm copied to clipboard

Using JWM with lxpanel

Open Eszartek opened this issue 6 years ago • 2 comments

I was having an issue with JWM not allowing lxpanel to iconify any windows when the window list button is toggled with a left mouse click. Instead, it would just focus/raise the window. So for comparision, I reset Openbox as the window manager, and besides allowing lxpanel to work correcly, I noticed that when I click on a lxpanel window list button, it would not take focus, but yet under JWM, the lxpanel winodw list button would take focus during mouse1 button press.

So, after unsuccessfully trying to modify lxpanel to not take focus on mouse clicks, I added a group option to JWM called "neverfocus". This is enabled on lxpanel by adding the group section to my .jwmrc :

   <Group>
      <Name>lxpanel</Name>
      <Option>neverfocus</Option>
   </Group>

And now lxpanel works as designed.

For those who may be interested, see the attached patch.

neverfocus.patch.zip

Update: It appears the group config is being ignored, as lxpanel works without the .jwmrc group section. So my modification needs some more work.

Eszartek avatar Sep 01 '18 16:09 Eszartek

Hmm, not sure what lxpanel provides that isn't already built into jwm... so I'm probably not the only one who hasn't tested this.

It seems like the nofocus group setting would do the same thing.

technosaurus avatar Sep 03 '18 22:09 technosaurus

The lxpanel just has tighter integration with the LXDE desktop environment. The JWM taskbar is in fact quite functional but I have a preference towards lxpanel. I choose to use JWM over the default OpenBox WM for the framed window drag/resize, which make for a snappier desktop experience over RDP.

Unfortunately, the nofocus group only takes effect on initial window mapping, not for subsequent mouse events sent to lxpanel after mapping.

When I get free time I need to dig further into the logic of JWM so that I can create a functional neverfocus group handler. As I mentioned in my update, I inadvertently included a few changes that caused my handler to activate on lxpanel without regard to having a group section in .jwmrc. In the mean time, I'm just happy that JWM is working fine with my patch.

Eszartek avatar Sep 04 '18 13:09 Eszartek