Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4446197

Should query X Window managers about dynamic resize support and settings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 1.4.0
    • client-libs
    • sparc
    • solaris_7

      There is currently no querying of the X Window manager to see whether
      dynamic layout is supported or not. The current code looks like this.

      /*
       * Class: sun_awt_motif_MToolkit
       * Method: isDynamicLayoutSupportedNative
       * Signature: ()Z
       */
      JNIEXPORT jboolean JNICALL
      Java_sun_awt_motif_MToolkit_isDynamicLayoutSupportedNative(JNIEnv *env, jobject
       this)
      {
          switch (awt_wm_getRunningWM()) {
            case KDE2_WM:
            case SAWFISH_WM:
              return JNI_TRUE;
            case CDE_WM:
            case ENLIGHTEN_WM:
              return JNI_FALSE;
            default:
              return JNI_FALSE;
          }
      }

      Since dynamic layout is often a user setting, we need to query the WM
      to see what the setting is.

            ehawkessunw Eric Hawkes (Inactive)
            ehawkessunw Eric Hawkes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: