[3ddesktop-dev] Re: 3ddesktop 0.2.8

Hi

I just saw that this mail never got to the list because I sent it from
another account. Sorry guys!

And another thing just popped into my mind: I made a small patch which *may*
be interesting: It's about mirroring the current desk to the other ones
when the daemon is being launched. If all of your desks look similar, that
may be a nice thing since you don't have to acquire at all. The patch is
attached.

Mathias
--- Begin Message ---
On Fri, Feb 11, 2005 at 12:35:49PM -0500, Rick Reynolds wrote:

Hi Rick

> I took the .rpm version and converted it to a Debian .deb package with 
> alien.  Then installed it via dpkg.  When I ran it the first time, it 
> complained about missing libXxf86vm.so.1.  I'm not sure what's up with 
> Debian packages and this lib, but I ended up having to create it from 
> the static version (.a file) via an ld command.  Once that was finished 
> things seem to be working -- the app runs, etc.  I sure hope that 
> whomever manages the Debian package will get 0.2.8 out there soon (I'm 
> aware that probably isn't any of you guys).

I'm sorry I could not answer earlier. I'm in Moscow right now and it was
quite diffcult to get everything I need to work on the debian package
(internet connection, power adapter ect.). But now I did it (actually Pierre
Habouzit made the major part of the work), and I hope it
will be built and uploaded soon. for those who can't wait or who want to
check the package: http://www.phys.ethz.ch/~mweyland/3ddesktop/


> A small feature request: it would be really great if you guys could add 
> a --version option on either 3ddesk or 3ddeskd (or both).  It's hard to 
> figure out what I'm running.

As from 2.8.0-1, I'm using dpatch for patches and I added a small
patch for that. So you will have --version on both 3ddesk and 3ddeskd if
you're using the debian binary package or if you're compiling from the
debian source. Other patches are:

01_gcc34.dpatch: Enable compilation with gcc 3.4
02_comments.dpatch: Correct some comments (not worth mentioning, though)
03_help.dpatch: Add --changespeed and --zoomspeed options to the usage
                screen.

04_version.dpatch enables --version, the patches can be found in the
debian/patches subdirectory if some developers are interested. We have some
manpages for the programs too, maybe they could be distributed with the
upstream package in the next release.

Best regards and sorry for the delay

Mathias

--- End Message ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 05_mirror.dpatch by  <mathias@xxxxxxxxxx>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Adds mirror feature: --mirror will display the current desktop
## DP: everywhere.


@DPATCH@
diff -urNad 3ddesktop-0.2.8/3ddeskd.cpp 
/tmp/dpep.UO12fn/3ddesktop-0.2.8/3ddeskd.cpp
--- 3ddesktop-0.2.8/3ddeskd.cpp 2005-03-06 13:04:02.000000000 +0300
+++ /tmp/dpep.UO12fn/3ddesktop-0.2.8/3ddeskd.cpp        2005-03-06 
13:06:09.000000000 +0300
@@ -2226,7 +2226,8 @@
 
             for (j = 0; j < col_count; j++) {
 
-                vdesks.set_vdesktop (j, i);
+                if(!cfg->options->mirror)
+                                       vdesks.set_vdesktop (j, i);
 
                 if (cfg->options->acquire > 1) {
                     msgout(DEBUG, "sleeping %d...\n", cfg->options->acquire);
diff -urNad 3ddesktop-0.2.8/config.hpp 
/tmp/dpep.UO12fn/3ddesktop-0.2.8/config.hpp
--- 3ddesktop-0.2.8/config.hpp  2005-03-06 13:05:13.000000000 +0300
+++ /tmp/dpep.UO12fn/3ddesktop-0.2.8/config.hpp 2005-03-06 13:05:13.000000000 
+0300
@@ -53,6 +53,7 @@
            "  where:\n"
            "    --acquire[=#]    Grab images for all the desktops by cycling 
thru\n"
            "                       (sleep for # millisecs at each screen for 
refresh)\n"
+                  "    --mirror         Grab image from current desktop and 
place it everywhere\n"
            "    --dir=/path      the install dir if different than 
/usr/share/3ddesktop\n"
            "    --texturesize=#  size of textures (larger for more detail) in 
powers of 2\n" 
            "    --wm=            Specify the Windowmanager type so all the 
virtual \n"
@@ -105,6 +106,7 @@
     int __priority;
 
     int acquire;
+       int mirror;
 
 #if defined(__FreeBSD__)
     char base_dir[MAXNAMLEN + 1];
@@ -167,6 +169,7 @@
         __priority = 12;
 
         acquire = 0;
+               mirror = 0;
         glcompression = 0;
         show_fps = 0;
         show_digits = 1;
@@ -393,6 +396,11 @@
         } else if (strcmp(option, "ewmh") == 0) {
             __use_ewmh = from_cmdline ? 1 : get_boolean (value);
 
+       
+       } else if (strcmp(option, "mirror") == 0) {
+               mirror = 1;
+               acquire = 1;
+
        } else if (strcmp(option, "acquire") == 0) {
            acquire = 1;
            if (value) {
@@ -520,6 +528,7 @@
             {"win", 0, 0, 0},
             {"sawfish", 0, 0, 0},
             {"acquire", 2, 0, 0},
+            {"mirror", 0, 0, 0},
             {"wm", 1, 0, 0},
             {"kde", 0, 0, 0},
             {"gnome2", 0, 0, 0},

Other related posts: