Merge lp:~ghantoos/alltray/old-maintenance-corrected-compiz into lp:alltray/old-maintenance

Proposed by Ignace Mouzannar
Status: Merged
Merged at revision: 36
Proposed branch: lp:~ghantoos/alltray/old-maintenance-corrected-compiz
Merge into: lp:alltray/old-maintenance
Diff against target: 100 lines (+22/-5)
4 files modified
alltray.1 (+1/-1)
src/clickmode.c (+1/-1)
src/common.h (+1/-0)
src/main.c (+19/-3)
To merge this branch: bzr merge lp:~ghantoos/alltray/old-maintenance-corrected-compiz
Reviewer Review Type Date Requested Status
Michael B. Trausch Approve
Review via email: mp+24659@code.launchpad.net

Description of the change

Hello Mike,

This branch corrects a minor typo in the manpage, and applies the patch that was included in Ubuntu fixing the bug preventing users from hiding open windows when using compiz.

Cheers,
 Ignace M

PS: the branch is still in "updating" mode on its LP page. I don't know why it is taking so long for LP to scan the changes.

To post a comment you must log in.
Revision history for this message
Michael B. Trausch (mtrausch) wrote :

Approved, will merge shortly.

review: Approve
Revision history for this message
Ignace Mouzannar (ghantoos) wrote :

Great. Thanks! :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'alltray.1'
--- alltray.1 2010-02-09 04:28:14 +0000
+++ alltray.1 2010-05-04 11:46:21 +0000
@@ -78,7 +78,7 @@
78Add entry "menu text:command" to popdown menu\&.78Add entry "menu text:command" to popdown menu\&.
79.TP79.TP
80\fB\-t\fR \fB\-\-title\fR80\fB\-t\fR \fB\-\-title\fR
81Show title change for <sec> seconds. Probably most usefull for xmms\&.81Show title change for <sec> seconds. Probably most useful for xmms\&.
82.TP82.TP
83\fB\-g\fR \fB\-\-geometry\fR83\fB\-g\fR \fB\-\-geometry\fR
84initial position. see man X.84initial position. see man X.
8585
=== modified file 'src/clickmode.c'
--- src/clickmode.c 2008-12-28 20:43:51 +0000
+++ src/clickmode.c 2010-05-04 11:46:21 +0000
@@ -141,7 +141,7 @@
141141
142 target_win != None &&142 target_win != None &&
143 target_win != GDK_ROOT_WINDOW() &&143 target_win != GDK_ROOT_WINDOW() &&
144 target_win != target_win_xmu &&144 (target_win != target_win_xmu || win->compiz == TRUE) &&
145 window_type_is_normal (target_win_xmu))) {145 window_type_is_normal (target_win_xmu))) {
146146
147 gdk_pointer_ungrab (GDK_CURRENT_TIME); 147 gdk_pointer_ungrab (GDK_CURRENT_TIME);
148148
=== modified file 'src/common.h'
--- src/common.h 2008-12-28 20:43:52 +0000
+++ src/common.h 2010-05-04 11:46:21 +0000
@@ -186,6 +186,7 @@
186186
187 gchar *window_manager;187 gchar *window_manager;
188 gboolean gnome;188 gboolean gnome;
189 gboolean compiz;
189 gboolean kde;190 gboolean kde;
190191
191 gboolean no_reparent;192 gboolean no_reparent;
192193
=== modified file 'src/main.c'
--- src/main.c 2010-02-07 21:33:20 +0000
+++ src/main.c 2010-05-04 11:46:21 +0000
@@ -123,6 +123,7 @@
123123
124 win->window_manager=NULL;124 win->window_manager=NULL;
125 win->gnome=FALSE;125 win->gnome=FALSE;
126 win->compiz=FALSE;
126 win->kde=FALSE;127 win->kde=FALSE;
127128
128 win->no_reparent=FALSE;129 win->no_reparent=FALSE;
@@ -169,7 +170,7 @@
169170
170 if (debug) printf ("window manager: %s\n", win->window_manager);171 if (debug) printf ("window manager: %s\n", win->window_manager);
171172
172 if (!strcmp(win->window_manager, "Metacity")) {173 if ((!strcmp(win->window_manager, "Metacity"))) {
173174
174 #ifndef GCONF_NOT_DISABLED175 #ifndef GCONF_NOT_DISABLED
175 printf ("\n\nAlltray: To use Alltray under Gnome, Gconf support should not be disabled.\n"176 printf ("\n\nAlltray: To use Alltray under Gnome, Gconf support should not be disabled.\n"
@@ -181,6 +182,16 @@
181 win->no_reparent=TRUE;182 win->no_reparent=TRUE;
182 }183 }
183184
185 if (!strcmp(win->window_manager, "compiz")) {
186 #ifndef GCONF_NOT_DISABLED
187 printf ("\n\nAlltray: To use Alltray with Compiz, Gconf support should not be disabled.\n"
188 " But it is.\n\n");
189 exit (0);
190 #endif
191
192 win->compiz = TRUE;
193 }
194
184 if (!strcmp(win->window_manager, "KWin")) {195 if (!strcmp(win->window_manager, "KWin")) {
185 win->kde=TRUE;196 win->kde=TRUE;
186 win->no_reparent=TRUE;197 win->no_reparent=TRUE;
@@ -237,6 +248,7 @@
237248
238 win->gnome=FALSE;249 win->gnome=FALSE;
239 win->kde=FALSE;250 win->kde=FALSE;
251 win->compiz=FALSE;
240 win->no_reparent=TRUE;252 win->no_reparent=TRUE;
241 }253 }
242254
@@ -363,10 +375,14 @@
363 if (!win->click_mode && !win->notray)375 if (!win->click_mode && !win->notray)
364 wait_for_manager(win);376 wait_for_manager(win);
365377
366 if (!win->click_mode)378 if (!win->click_mode) {
367 exec_and_wait_for_window(win);379 exec_and_wait_for_window(win);
368 else380 } else {
381 if(win->compiz) {
382 win->no_reparent = TRUE;
383 }
369 click_mode(win);384 click_mode(win);
385 }
370386
371 if (win->xmms) {387 if (win->xmms) {
372 win->xmms_main_window_gdk=gdk_window_foreign_new(win->xmms_main_window_xlib);388 win->xmms_main_window_gdk=gdk_window_foreign_new(win->xmms_main_window_xlib);

Subscribers

People subscribed via source and target branches