[beryl-commits] r2271 - branches/beryl-plugins/group-tabbed

maniac at server.beryl-project.org maniac at server.beryl-project.org
Tue Jan 2 13:55:51 CET 2007


Author: maniac
Date: 2007-01-02 12:55:51 +0000 (Tue, 02 Jan 2007)
New Revision: 2271

Modified:
   branches/beryl-plugins/group-tabbed/tab.c
Log:
group-tab-branch: work around not getting move notifies by using the timer for the moment


Modified: branches/beryl-plugins/group-tabbed/tab.c
===================================================================
--- branches/beryl-plugins/group-tabbed/tab.c	2007-01-02 12:42:10 UTC (rev 2270)
+++ branches/beryl-plugins/group-tabbed/tab.c	2007-01-02 12:55:51 UTC (rev 2271)
@@ -409,6 +409,30 @@
 				WIN_REAL_X(topTab) + WIN_REAL_WIDTH(topTab));
 			addWindowDamage(topTab);
 		}
+
+		/* FIXME: remove this after finding out how to get move notifies for input only windows */
+#if 1		
+		if (bar->mouseOver && group->inputPrevention.id) {
+			Bool hasText = FALSE;
+			GroupTabBarSlot *slot;
+			for (slot = bar->slots; slot; slot = slot->next) {
+				if (XPointInRegion(slot->region, mouseX, mouseY)) {
+					hasText = TRUE;
+					if (slot != bar->lastHoveredSlot) {
+						bar->lastHoveredSlot = slot;
+						groupRenderWindowTitle(group->windows[0]->screen, group);
+						damageScreenRegion(group->windows[0]->screen, bar->region);
+						break;
+					}
+			    	}
+			}
+			if (!hasText && bar->lastHoveredSlot) {
+				bar->lastHoveredSlot = NULL;
+				groupRenderWindowTitle(group->windows[0]->screen, group);
+				damageScreenRegion(group->windows[0]->screen, bar->region);
+			}
+		}
+#endif		
 		
 		groupTabSetVisibility (group, bar->mouseOver, 0);
 	}




More information about the commits mailing list