1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 21:08:08 +01:00

fixed the 'focus flicker' problem, seen with GTK2 applications

This commit is contained in:
dan
2003-08-03 00:00:11 +00:00
parent 44f636e91e
commit 7efcf57c18
3 changed files with 15 additions and 4 deletions

View File

@@ -403,7 +403,10 @@ handleDeadProcess(void *foo)
static void
saveTimestamp(XEvent *event)
{
LastTimestamp = CurrentTime;
/*
* Never save CurrentTime as LastTimestamp because CurrentTime
* it's not a real timestamp (it's the 0L constant)
*/
switch (event->type) {
case ButtonRelease:
@@ -433,7 +436,7 @@ saveTimestamp(XEvent *event)
case SelectionNotify:
LastTimestamp = event->xselection.time;
#ifdef XDND
wXDNDProcessSelection(event);
wXDNDProcessSelection(event);
#endif
break;
}