552 getter.dispose();
553 }
554 return false;
555 }
556
557 /*
558 * Is Sawfish running?
559 */
560 static boolean isSawfish() {
561 return isNetWMName("Sawfish");
562 }
563
564 /*
565 * Is KDE2 (KWin) running?
566 */
567 static boolean isKDE2() {
568 return isNetWMName("KWin");
569 }
570
571 static boolean isCompiz() {
572 return isNetWMName("compiz");
573 }
574
575 static boolean isLookingGlass() {
576 return isNetWMName("LG3D");
577 }
578
579 static boolean isCWM() {
580 return isNetWMName("CWM");
581 }
582
583 /*
584 * Is Metacity running?
585 */
586 static boolean isMetacity() {
587 return isNetWMName("Metacity");
588 // || (
589 // XA_NET_SUPPORTING_WM_CHECK.
590 // getIntProperty(XToolkit.getDefaultRootWindow(), XA_NET_SUPPORTING_WM_CHECK.
591 // getIntProperty(XToolkit.getDefaultRootWindow(), XAtom.XA_CARDINAL)) == 0);
592 }
|
552 getter.dispose();
553 }
554 return false;
555 }
556
557 /*
558 * Is Sawfish running?
559 */
560 static boolean isSawfish() {
561 return isNetWMName("Sawfish");
562 }
563
564 /*
565 * Is KDE2 (KWin) running?
566 */
567 static boolean isKDE2() {
568 return isNetWMName("KWin");
569 }
570
571 static boolean isCompiz() {
572 return isNetWMName("compiz") || isNetWMName("Compiz");
573 }
574
575 static boolean isLookingGlass() {
576 return isNetWMName("LG3D");
577 }
578
579 static boolean isCWM() {
580 return isNetWMName("CWM");
581 }
582
583 /*
584 * Is Metacity running?
585 */
586 static boolean isMetacity() {
587 return isNetWMName("Metacity");
588 // || (
589 // XA_NET_SUPPORTING_WM_CHECK.
590 // getIntProperty(XToolkit.getDefaultRootWindow(), XA_NET_SUPPORTING_WM_CHECK.
591 // getIntProperty(XToolkit.getDefaultRootWindow(), XAtom.XA_CARDINAL)) == 0);
592 }
|