src/video/x11/SDL_x11events.c
changeset 7839 d2804f8153fe
parent 7838 909b0d7fe4dd
child 7857 6388f5229bb7
equal deleted inserted replaced
7838:909b0d7fe4dd 7839:d2804f8153fe
   522             long border_left = 0;
   522             long border_left = 0;
   523             long border_right = 0;
   523             long border_right = 0;
   524             long border_top = 0;
   524             long border_top = 0;
   525             long border_bottom = 0;
   525             long border_bottom = 0;
   526             if (data->xwindow) {
   526             if (data->xwindow) {
   527                 Atom _net_frame_extents = XInternAtom(display, "_NET_FRAME_EXTENTS", 0);
   527                 Atom _net_frame_extents = X11_XInternAtom(display, "_NET_FRAME_EXTENTS", 0);
   528                 Atom type;
   528                 Atom type;
   529                 int format;
   529                 int format;
   530                 unsigned long nitems, bytes_after;
   530                 unsigned long nitems, bytes_after;
   531                 unsigned char *property;
   531                 unsigned char *property;
   532                 XGetWindowProperty(display, data->xwindow,
   532                 X11_XGetWindowProperty(display, data->xwindow,
   533                     _net_frame_extents, 0, 16, 0,
   533                     _net_frame_extents, 0, 16, 0,
   534                     XA_CARDINAL, &type, &format,
   534                     XA_CARDINAL, &type, &format,
   535                     &nitems, &bytes_after, &property);
   535                     &nitems, &bytes_after, &property);
   536 
   536 
   537                 border_left = ((long*)property)[0];
   537                 border_left = ((long*)property)[0];