[openbox] Java and openbox

Brian Mattern rephorm at rephorm.com
Fri Mar 18 13:18:53 EDT 2011

As a test, the following java code (save to a file called 'temp.java'
and compile with 'javac temp.java' and run with 'java temp') will
display the broken behavior when run from a desktop other than the first:

import javax.swing.*;
public class temp {
  public static void main(String args[]) {
    JOptionPane.showMessageDialog(null, "Hello World!");

On Thu, 17 Mar 2011, Brian Mattern wrote:

> Git commit 79cf72d17ff42e5bc8eb1adbd98bb42aa71fb085 seems to have broken
> compatibility with java swing apps. From this point forward in git, they
> are all started on desktop 0.
> My quick guess at what is going on is (without much familiarity with
> openbox's codebase, so this could be wrong):
> Java apps get "fake" managed first, at which point a configure event
> sets _NET_WM_DESKTOP to 0, then when they are managed for real, openbox
> thinks that they are requesting to be placed on desktop 0.
> Anyway, I'm not sure that this isn't Java's fault, BUT it does seem to
> be a regression on the part of openbox since it worked prior to that
> commit.
> --
> Brian Mattern
> _______________________________________________
> openbox mailing list
> openbox at icculus.org
> http://icculus.org/mailman/listinfo/openbox
Brian Mattern

More information about the openbox mailing list