]> Dogcows Code - chaz/openbox/commitdiff
re-added UnderMouse Placement
authorDana Jansens <danakj@orodu.net>
Tue, 28 May 2002 12:39:23 +0000 (12:39 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 28 May 2002 12:39:23 +0000 (12:39 +0000)
added NLS support in the new configure system.

23 files changed:
nls/C/Makefile.am
nls/Makefile.am
nls/da_DK/Makefile.am
nls/de_DE/Makefile.am
nls/es_ES/Makefile.am
nls/et_EE/Makefile.am
nls/fr_FR/Makefile.am
nls/hu_HU/Makefile.am
nls/it_IT/Makefile.am
nls/ja_JP/Makefile.am
nls/nl_NL/Makefile.am
nls/pt_BR/Makefile.am
nls/ru_RU/Makefile.am
nls/sl_SI/Makefile.am
nls/sv_SE/Makefile.am
nls/tr_TR/Makefile.am
nls/uk_UA/Makefile.am
nls/zh_CN/Makefile.am
nls/zh_TW/Makefile.am
src/Configmenu.cc
src/Screen.hh
src/Workspace.cc
src/Workspace.hh

index 9c0c39ce697c37d71311a980a0c18026da779e8d..f13b6b849c71afe45bd5a073564a07e30fe065d1 100644 (file)
@@ -8,7 +8,7 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: Translation.m openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(DESTDIR)$(pkgdatadir)/nls/C"; \
                $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/nls/C; \
                $(INSTALL_DATA) openbox.cat $(DESTDIR)$(pkgdatadir)/nls/C; \
@@ -24,7 +24,7 @@ install-data-local: openbox.cat
                ln -f -s C $(DESTDIR)$(pkgdatadir)/nls/en; \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(DESTDIR)$(pkgdatadir)/nls/C/openbox.cat; \
                rm -f $(DESTDIR)$(pkgdatadir)/nls/US_ASCII; \
                rm -f $(DESTDIR)$(pkgdatadir)/nls/POSIX; \
@@ -42,7 +42,7 @@ Translation.m: $(MFILES)
                output=Translation.m $(MFILES)
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index 9b6c8fac0ce479895ae074160144828998170d9b..eb6fdc9e5a94eb74400a11822f989081a19e0aa7 100644 (file)
@@ -7,7 +7,7 @@ MAINTAINERCLEANFILES = Makefile.in blackbox-nls.hh
 DISTCLEANFILES = blackbox-nls.hh
 
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rmdir $(DESTDIR)$(pkgdatadir)/nls; \
        fi
 distclean-local:
index 1badc683a23d1b3ed07126490b261385342da086..72eff11bb2ef7391a23e99219c970084d786d37a 100644 (file)
@@ -10,24 +10,24 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index 3bb955793e219a2b47414576f3748cfd110a7231..b4d883a5a23c19683d5543cd90477f3e52fcfaec 100644 (file)
@@ -10,7 +10,7 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
@@ -18,19 +18,19 @@ install-data-local: openbox.cat
                 ln -f -s de_DE $(DESTDIR)$(pkgdatadir)/nls/de; \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rm -f $(DESTDIR)$(pkgdatadir)/nls/de; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index 0108edb9ed757cc21186a19f5fe22ddca5bbd227..fe6d21504f1dcfd9fdcb6e5ce5aebbd3d34dcb5b 100644 (file)
@@ -10,7 +10,7 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
@@ -18,19 +18,19 @@ install-data-local: openbox.cat
                ln -f -s es_ES $(DESTDIR)$(pkgdatadir)/nls/es; \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rm -f $(DESTDIR)$(pkgdatadir)/nls/es; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index 9364b753480d971e5fbe7f53b0210b925e4c5ec1..43f549b4666c09e3f24dbbeee40378416353935f 100644 (file)
@@ -10,24 +10,24 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index b407ab93b4f4727550101144816da35b5a3c247f..a1f27a31aaac8b405c94aa7652019d827abd6fcf 100644 (file)
@@ -10,7 +10,7 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
@@ -18,19 +18,19 @@ install-data-local: openbox.cat
                 ln -f -s fr_FR $(DESTDIR)$(pkgdatadir)/nls/fr; \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rm -f $(DESTDIR)$(pkgdatadir)/nls/fr; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index b109c1afa3e5a24f48eea57e075df685a846ce08..a97c98ab0279b0df31e1521912e60dbff573f92c 100644 (file)
@@ -10,24 +10,24 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index a2a5988fb83f8bd6a162134d779e91067270e88e..bea5101aaed5f46d69d6f2f22c91f70903e5186c 100644 (file)
@@ -10,27 +10,27 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
-               rm -f $(DESTDIR)$(pkgdatadir)/nls/it; \
-               ln -f -s it_IT $(DESTDIR)$(pkgdatadir)/nls/it; \
-       fi
+                rm -f $(DESTDIR)$(pkgdatadir)/nls/it; \
+                ln -f -s it_IT $(DESTDIR)$(pkgdatadir)/nls/it; \
+fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rm -f $(DESTDIR)$(pkgdatadir)/nls/it; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index 46045a49efaf191ef5674448c616f810e05b2754..fcfcf6333d9860b78cfddf3efef3eddc7f2e05f5 100644 (file)
@@ -10,24 +10,24 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index cade0ea4e58363f966ead661a9d7f29522c0760d..177003efc168dd943e56b1dafc50d2702c904586 100644 (file)
@@ -10,27 +10,27 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
-               rm -f $(DESTDIR)$(pkgdatadir)/nls/nl; \
-               ln -f -s nl_NL $(DESTDIR)$(pkgdatadir)/nls/nl; \
-       fi
+                rm -f $(DESTDIR)$(pkgdatadir)/nls/nl; \
+                ln -f -s nl_NL $(DESTDIR)$(pkgdatadir)/nls/nl; \
+fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rm -f $(DESTDIR)$(pkgdatadir)/nls/nl; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index c52861c18d66f33169d2f3966bb41902562c80c1..957716d469f9ccc1d3ea7280dbc6109d3bece9f8 100644 (file)
@@ -10,24 +10,24 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index b148c08a655fccb6cb0903149af20ad733aa7b9d..f883f66496a092969b01ee161ec0633e7a2274f8 100644 (file)
@@ -10,24 +10,24 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index f5ffde73fc12ec824af859a4007f5cefc505a216..b006001e50e40d906eca60d069e96c2feb857d23 100644 (file)
@@ -10,24 +10,24 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index 647a64601ea5b76e0b45b0f7620765655a01d2f0..737625a94b9d7c4f1c0af060c5082a1102441dbc 100644 (file)
@@ -10,24 +10,24 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index c28295d77e9a5208909c79a82ba0353a81c2d54c..aa6c6ae47ccc9d2504038f6645b41e1ebd8239bd 100644 (file)
@@ -10,24 +10,24 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index 7f799e97241708aa5f56d6d9c7b8af99056fcb9b..059d8ccc21172a2ff8d7b9ef90bbe36bb44732f2 100644 (file)
@@ -10,24 +10,24 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index 39400ec41cc21f4ebec50bf76e8bbfba0b2f3b6d..0fb4ee2a5c9fc0a8af349b5e3ff1513694d239bd 100644 (file)
@@ -10,24 +10,24 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index da4fb15982c5c2e453f51ae59d841f6fae60a761..98bffb953389130eb62f03038762ed00cd3ec313 100644 (file)
@@ -10,24 +10,24 @@ MFILES = @srcdir@/BaseDisplay.m @srcdir@/Basemenu.m @srcdir@/Configmenu.m @srcdi
 
 all-local: openbox.cat
 install-data-local: openbox.cat
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                echo "Installing catalog in $(THE_NLS_PATH)"; \
                $(mkinstalldirs) $(THE_NLS_PATH); \
                $(INSTALL_DATA) openbox.cat $(THE_NLS_PATH); \
        fi
 uninstall-local:
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                rm -f $(THE_NLS_PATH)/openbox.cat; \
                rmdir $(THE_NLS_PATH); \
        fi
 
 Translation.m: $(MFILES)
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                awk -f @srcdir@/../convert.awk output=Translation.m $(MFILES); \
        fi
 
 openbox.cat: Translation.m
-       @if test x$(NLSTEST) = "x-DNLS"; then \
+       @if test x$(NLSTEST) = "xyes"; then \
                $(gencat_cmd) openbox.cat Translation.m; \
        fi
 
index 6d1bbed274aa9c39c36ce0229ba885629516a9ff..77755e27af9212cc795638725e675f41e1f04e7b 100644 (file)
@@ -203,6 +203,8 @@ Configmenu::Placementmenu::Placementmenu(Configmenu *cm):
          BScreen::ColSmartPlacement);
   insert(i18n(ConfigmenuSet, ConfigmenuCascade, "Cascade Placement"),
          BScreen::CascadePlacement);
+  insert(i18n(ConfigmenuSet, ConfigmenuUnderMouse, "Under Mouse Placement"),
+         BScreen::UnderMousePlacement);
   insert(i18n(ConfigmenuSet, ConfigmenuLeftRight, "Left to Right"),
          BScreen::LeftRight);
   insert(i18n(ConfigmenuSet, ConfigmenuRightLeft, "Right to Left"),
@@ -217,28 +219,26 @@ Configmenu::Placementmenu::Placementmenu(Configmenu *cm):
 
 
 void Configmenu::Placementmenu::setValues(void) {
-  switch (getScreen()->getPlacementPolicy()) {
-  case BScreen::RowSmartPlacement:
-    setItemSelected(0, True);
-    break;
-
-  case BScreen::ColSmartPlacement:
-    setItemSelected(1, True);
-    break;
-
-  case BScreen::CascadePlacement:
-    setItemSelected(2, True);
-    break;
-  }
+  int placement = getScreen()->getPlacementPolicy();
+  
+  setItemSelected(0, placement == BScreen::RowSmartPlacement);
+  setItemSelected(1, placement == BScreen::ColSmartPlacement);
+  setItemSelected(2, placement == BScreen::CascadePlacement);
+  setItemSelected(3, placement == BScreen::UnderMousePlacement);
 
   bool rl = (getScreen()->getRowPlacementDirection() == BScreen::LeftRight),
-       tb = (getScreen()->getColPlacementDirection() == BScreen::TopBottom);
-
-  setItemSelected(3, rl);
-  setItemSelected(4, ! rl);
-
-  setItemSelected(5, tb);
-  setItemSelected(6, ! tb);
+       tb = (getScreen()->getColPlacementDirection() == BScreen::TopBottom),
+       e = placement != BScreen::UnderMousePlacement;
+
+  setItemSelected(4, rl);
+  setItemSelected(5, ! rl);
+  setItemEnabled(4, e);
+  setItemEnabled(5, e);
+
+  setItemSelected(6, tb);
+  setItemSelected(7, ! tb);
+  setItemEnabled(6, e);
+  setItemEnabled(7, e);
 }
 
 
@@ -261,59 +261,88 @@ void Configmenu::Placementmenu::itemSelected(int button, unsigned int index) {
   case BScreen::RowSmartPlacement:
     getScreen()->savePlacementPolicy(item->function());
 
-    setItemSelected(0, True);
-    setItemSelected(1, False);
-    setItemSelected(2, False);
+    setItemSelected(0, true);
+    setItemSelected(1, false);
+    setItemSelected(2, false);
+    setItemSelected(3, false);
+    setItemEnabled(4, true);
+    setItemEnabled(5, true);
+    setItemEnabled(6, true);
+    setItemEnabled(7, true);
 
     break;
 
   case BScreen::ColSmartPlacement:
     getScreen()->savePlacementPolicy(item->function());
 
-    setItemSelected(0, False);
-    setItemSelected(1, True);
-    setItemSelected(2, False);
+    setItemSelected(0, false);
+    setItemSelected(1, true);
+    setItemSelected(2, false);
+    setItemSelected(3, false);
+    setItemEnabled(4, true);
+    setItemEnabled(5, true);
+    setItemEnabled(6, true);
+    setItemEnabled(7, true);
 
     break;
 
   case BScreen::CascadePlacement:
     getScreen()->savePlacementPolicy(item->function());
 
-    setItemSelected(0, False);
-    setItemSelected(1, False);
-    setItemSelected(2, True);
+    setItemSelected(0, false);
+    setItemSelected(1, false);
+    setItemSelected(2, true);
+    setItemSelected(3, false);
+    setItemEnabled(4, true);
+    setItemEnabled(5, true);
+    setItemEnabled(6, true);
+    setItemEnabled(7, true);
+
+    break;
+
+  case BScreen::UnderMousePlacement:
+    getScreen()->savePlacementPolicy(item->function());
+
+    setItemSelected(0, false);
+    setItemSelected(1, false);
+    setItemSelected(2, false);
+    setItemSelected(3, true);
+    setItemEnabled(4, false);
+    setItemEnabled(5, false);
+    setItemEnabled(6, false);
+    setItemEnabled(7, false);
 
     break;
 
   case BScreen::LeftRight:
     getScreen()->saveRowPlacementDirection(BScreen::LeftRight);
 
-    setItemSelected(3, True);
-    setItemSelected(4, False);
+    setItemSelected(4, true);
+    setItemSelected(5, false);
 
     break;
 
   case BScreen::RightLeft:
     getScreen()->saveRowPlacementDirection(BScreen::RightLeft);
 
-    setItemSelected(3, False);
-    setItemSelected(4, True);
+    setItemSelected(4, false);
+    setItemSelected(5, true);
 
     break;
 
   case BScreen::TopBottom:
     getScreen()->saveColPlacementDirection(BScreen::TopBottom);
 
-    setItemSelected(5, True);
-    setItemSelected(6, False);
+    setItemSelected(6, true);
+    setItemSelected(7, false);
 
     break;
 
   case BScreen::BottomTop:
     getScreen()->saveColPlacementDirection(BScreen::BottomTop);
 
-    setItemSelected(5, False);
-    setItemSelected(6, True);
+    setItemSelected(6, false);
+    setItemSelected(7, true);
 
     break;
   }
index 34cc633abc8d503629ee76e8b51468a9888b0ebd..3ed724f99f8674fc0cf317ecaea7a058f5fbbdf2 100644 (file)
@@ -190,8 +190,8 @@ private:
 
 
 public:
-  enum { RowSmartPlacement = 1, ColSmartPlacement, CascadePlacement, LeftRight,
-         RightLeft, TopBottom, BottomTop };
+  enum { RowSmartPlacement = 1, ColSmartPlacement, CascadePlacement,
+         UnderMousePlacement, LeftRight, RightLeft, TopBottom, BottomTop };
   enum { RoundBullet = 1, TriangleBullet, SquareBullet, NoBullet };
   enum { Restart = 1, RestartOther, Exit, Shutdown, Execute, Reconfigure,
          WindowShade, WindowIconify, WindowMaximize, WindowClose, WindowRaise,
index 0bc906cbe6e3707c91a2dfabc1e3284c1a4ec3eb..91bc141958865f3d706091bd1ee215c4db1840d1 100644 (file)
@@ -556,6 +556,31 @@ bool Workspace::smartPlacement(Rect& win, const Rect& availableArea) {
 }
 
 
+bool Workspace::underMousePlacement(Rect &win, const Rect &availableArea) {
+  int x, y, rx, ry;
+  Window c, r;
+  unsigned int m;
+  XQueryPointer(screen->getBlackbox()->getXDisplay(), screen->getRootWindow(),
+                &r, &c, &rx, &ry, &x, &y, &m);
+  x = rx - win.width() / 2;
+  y = ry - win.height() / 2;
+
+  if (x < availableArea.x())
+    x = availableArea.x();
+  if (y < availableArea.y())
+    y = availableArea.y();
+  if (x + win.width() > availableArea.x() + availableArea.width())
+    x = availableArea.x() + availableArea.width() - win.width();
+  if (y + win.height() > availableArea.y() + availableArea.height())
+    y = availableArea.y() + availableArea.height() - win.height();
+
+  win.setX(x);
+  win.setY(y);
+
+  return True;
+}
+
+
 bool Workspace::cascadePlacement(Rect &win, const Rect &availableArea) {
   if ((cascade_x > static_cast<signed>(availableArea.width() / 2)) ||
       (cascade_y > static_cast<signed>(availableArea.height() / 2)))
@@ -583,6 +608,8 @@ void Workspace::placeWindow(BlackboxWindow *win) {
   case BScreen::ColSmartPlacement:
     placed = smartPlacement(new_win, availableArea);
     break;
+  case BScreen::UnderMousePlacement:
+    placed = underMousePlacement(new_win, availableArea);
   default:
     break; // handled below
   } // switch
index 652e8cef574af6bbb5b38456b08a34f3abde7c22..dadb0dd0c50638c2dd26c467e67058a72184e5b5 100644 (file)
@@ -64,6 +64,7 @@ private:
   void placeWindow(BlackboxWindow *win);
   bool cascadePlacement(Rect& win, const Rect& availableArea);
   bool smartPlacement(Rect& win, const Rect& availableArea);
+  bool underMousePlacement(Rect& win, const Rect& availableArea);
 
 public:
   Workspace(BScreen *scrn, unsigned int i = 0);
This page took 0.059592 seconds and 4 git commands to generate.