forked from bartvdbraak/blender
Use XInternAtom by default.
I don't know the name of the "SGI Fast" atom, but this is only request when blender start so i don't think that this make some "big" difference. So just use plain X11 calls (thanks GSR for the info).
This commit is contained in:
parent
a2b8986d1d
commit
c5488b943d
@ -109,20 +109,15 @@ GHOST_SystemX11(
|
|||||||
if (!m_display) return;
|
if (!m_display) return;
|
||||||
|
|
||||||
#ifdef __sgi
|
#ifdef __sgi
|
||||||
m_delete_window_atom
|
m_delete_window_atom = XSGIFastInternAtom(m_display,
|
||||||
= XSGIFastInternAtom(m_display,
|
|
||||||
"WM_DELETE_WINDOW",
|
"WM_DELETE_WINDOW",
|
||||||
SGI_XA_WM_DELETE_WINDOW, False);
|
SGI_XA_WM_DELETE_WINDOW,
|
||||||
/* Some one with SGI can tell me about this ? */
|
False);
|
||||||
m_wm_state= None;
|
|
||||||
m_wm_change_state= None;
|
|
||||||
m_net_state= None;
|
|
||||||
m_net_max_horz= None;
|
|
||||||
m_net_max_vert= None;
|
|
||||||
m_net_fullscreen= None;
|
|
||||||
m_motif = None;
|
|
||||||
#else
|
#else
|
||||||
m_delete_window_atom= XInternAtom(m_display, "WM_DELETE_WINDOW", False);
|
m_delete_window_atom = XInternAtom(m_display,
|
||||||
|
"WM_DELETE_WINDOW", False);
|
||||||
|
#endif
|
||||||
|
|
||||||
m_wm_state= XInternAtom(m_display, "WM_STATE", False);
|
m_wm_state= XInternAtom(m_display, "WM_STATE", False);
|
||||||
m_wm_change_state= XInternAtom(m_display, "WM_CHANGE_STATE", False);
|
m_wm_change_state= XInternAtom(m_display, "WM_CHANGE_STATE", False);
|
||||||
m_net_state= XInternAtom(m_display, "_NET_WM_STATE", False);
|
m_net_state= XInternAtom(m_display, "_NET_WM_STATE", False);
|
||||||
@ -133,7 +128,6 @@ GHOST_SystemX11(
|
|||||||
m_net_fullscreen= XInternAtom(m_display,
|
m_net_fullscreen= XInternAtom(m_display,
|
||||||
"_NET_WM_STATE_FULLSCREEN", False);
|
"_NET_WM_STATE_FULLSCREEN", False);
|
||||||
m_motif= XInternAtom(m_display, "_MOTIF_WM_HINTS", False);
|
m_motif= XInternAtom(m_display, "_MOTIF_WM_HINTS", False);
|
||||||
#endif
|
|
||||||
|
|
||||||
// compute the initial time
|
// compute the initial time
|
||||||
timeval tv;
|
timeval tv;
|
||||||
|
Loading…
Reference in New Issue
Block a user