[beryl-commits] r2274 - branches/beryl-plugins/group-tabbed
maniac at server.beryl-project.org
maniac at server.beryl-project.org
Tue Jan 2 14:22:57 CET 2007
Author: maniac
Date: 2007-01-02 13:22:57 +0000 (Tue, 02 Jan 2007)
New Revision: 2274
Modified:
branches/beryl-plugins/group-tabbed/group.c
branches/beryl-plugins/group-tabbed/tab.c
Log:
group-tab-branch: remove non-working motion notify processing
Modified: branches/beryl-plugins/group-tabbed/group.c
===================================================================
--- branches/beryl-plugins/group-tabbed/group.c 2007-01-02 13:18:41 UTC (rev 2273)
+++ branches/beryl-plugins/group-tabbed/group.c 2007-01-02 13:22:57 UTC (rev 2274)
@@ -516,35 +516,10 @@
switch (event->type) {
case MotionNotify:
{
- GroupSelection *group;
- Bool hasText = FALSE;
CompScreen *s = findScreenAtDisplay(d, event->xmotion.root);
- if (!s)
- break;
+ if (s)
+ groupHandleMotionEvent(s, d->pointerX, d->pointerY);
- groupHandleMotionEvent(s, d->pointerX, d->pointerY);
-
- for (group = gd->groups; group; group = group->next) {
- if ((event->xmotion.window == group->inputPrevention.id) && group->tabBar) {
- GroupTabBarSlot *slot;
- for (slot = group->tabBar->slots; slot; slot = slot->next) {
- if (XPointInRegion(slot->region, d->pointerX, d->pointerY)) {
- hasText = TRUE;
- if (slot != group->tabBar->lastHoveredSlot) {
- group->tabBar->lastHoveredSlot = slot;
- groupRenderWindowTitle(s, group);
- damageScreenRegion(s, group->tabBar->region);
- break;
- }
- }
- }
- if (!hasText && group->tabBar->lastHoveredSlot) {
- group->tabBar->lastHoveredSlot = NULL;
- groupRenderWindowTitle(s, group);
- damageScreenRegion(s, group->tabBar->region);
- }
- }
- }
break;
}
Modified: branches/beryl-plugins/group-tabbed/tab.c
===================================================================
--- branches/beryl-plugins/group-tabbed/tab.c 2007-01-02 13:18:41 UTC (rev 2273)
+++ branches/beryl-plugins/group-tabbed/tab.c 2007-01-02 13:22:57 UTC (rev 2274)
@@ -1139,7 +1139,7 @@
{
XSetWindowAttributes attrib;
attrib.override_redirect = TRUE;
- attrib.event_mask = ButtonPressMask | PointerMotionMask;
+ attrib.event_mask = ButtonPressMask;
group->inputPrevention.id = XCreateWindow(display, group->windows[0]->screen->root,
-100, -100, 1, 1, 0, CopyFromParent,
More information about the commits
mailing list