Commit f2321e217976042403adfb74bffa7dceffa6febd

Don't react to X errors on displays that are not the Qt display.

Even though Qt doesn't support multiple displays, it is possible for
people to have code that uses multiple displays (either by using Xlib
directly or when integrating with another toolkit).

Task-number: QTBUG-3337
src/gui/kernel/qapplication_x11.cpp
(5 / 0)
  
614614
615615static int qt_x_errhandler(Display *dpy, XErrorEvent *err)
616616{
617 if (X11->display != dpy) {
618 // only handle X errors for our display
619 return 0;
620 }
621
617622 switch (err->error_code) {
618623 case BadAtom:
619624 if (err->request_code == 20 /* X_GetProperty */

Comments

Add a new comment:

Login or create an account to post a comment

Add your comment