summaryrefslogtreecommitdiff
path: root/shelf.c
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2007-12-10 15:16:52 +0100
committerKristian Lyngstol <kristian@windu.lyngstol.net>2007-12-10 15:16:52 +0100
commit7705c55e8a353a269bafcb70de1fb929300acdf0 (patch)
tree94de75e212b717ab193c51c1e5b13b6a1fdf5a08 /shelf.c
parentb1c0dd01268d7d5b38c0cbb04130dcf8e26cbafb (diff)
downloadshelf-7705c55e8a353a269bafcb70de1fb929300acdf0.tar.gz
shelf-7705c55e8a353a269bafcb70de1fb929300acdf0.tar.bz2
Comments
Diffstat (limited to 'shelf.c')
-rw-r--r--shelf.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/shelf.c b/shelf.c
index a65da94..823b7ac 100644
--- a/shelf.c
+++ b/shelf.c
@@ -27,13 +27,13 @@
* - Animation
* - Floating resize (on scroll wheel for instance)
* - Correct damage handeling
+ * - Mouse-over?
*/
#include <compiz-core.h>
#include "shelf_options.h"
typedef struct {
- Window id;
float scale;
} shelfWindow;
@@ -51,7 +51,9 @@ static int screenPrivateIndex;
#define SHELF_WINDOW(w) \
shelfWindow *sw = w->base.privates[ss->windowPrivateIndex].ptr;
-/* Initially triggered keybinding.
+/* Binding for toggle mode.
+ * Toggles through three preset scale levels,
+ * currently hard coded to 1.0f (no scale), 0.5f and 0.25f.
*/
static Bool
shelfTrigger (CompDisplay *d,
@@ -75,7 +77,10 @@ shelfTrigger (CompDisplay *d,
return TRUE;
}
-/* Fixme:
+/* The window was damaged, adjust the damage to fit the actual area we
+ * care about.
+ *
+ * FIXME:
* This should not cause total screen damage, but only adjust the rect
* correctly.
*/
@@ -101,7 +106,10 @@ shelfDamageWindowRect (CompWindow *w,
return status;
}
-/* Scale the window if it is supposed to be scaled.
+/* Scale the window if it is supposed to be scaled.
+ * Translate into place.
+ *
+ * FIXME: Merge the two translations.
*/
static Bool
shelfPaintWindow (CompWindow *w,