mirror of
https://github.com/fltk/fltk.git
synced 2026-05-12 01:54:25 +08:00
Fix X11 '_NET_ACTIVE_WINDOW' message (STR 3396)
Send a valid timestamp rather than 0. For details see STR 3396.
This commit is contained in:
+4
-2
@@ -2280,8 +2280,10 @@ void Fl_X11_Window_Driver::activate_window() {
|
||||
prev = x->xid;
|
||||
}
|
||||
|
||||
send_wm_event(w, fl_NET_ACTIVE_WINDOW, 1 /* application */,
|
||||
0 /* timestamp */, prev /* previously active window */);
|
||||
send_wm_event(w, fl_NET_ACTIVE_WINDOW,
|
||||
1, // source: 1 = application
|
||||
fl_event_time, // time of client's last user activity (STR 3396)
|
||||
prev); // previously active window
|
||||
}
|
||||
|
||||
/* Change an existing window to fullscreen */
|
||||
|
||||
Reference in New Issue
Block a user