Commit eef3b9d9 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Do not assume long integers are 32-bits.

Should fix fullscreen on amd64 - closes #670
parent 4413cbfe
...@@ -73,18 +73,18 @@ X11Window::X11Window( intf_thread_t *pIntf, GenericWindow &rWindow, ...@@ -73,18 +73,18 @@ X11Window::X11Window( intf_thread_t *pIntf, GenericWindow &rWindow,
// Changing decorations // Changing decorations
struct { struct {
unsigned long flags; uint32_t flags;
unsigned long functions; uint32_t functions;
unsigned long decorations; uint32_t decorations;
long input_mode; int32_t input_mode;
unsigned long status; uint32_t status;
} motifWmHints; } motifWmHints;
Atom hints_atom = XInternAtom( XDISPLAY, "_MOTIF_WM_HINTS", False ); Atom hints_atom = XInternAtom( XDISPLAY, "_MOTIF_WM_HINTS", False );
motifWmHints.flags = 2; // MWM_HINTS_DECORATIONS; motifWmHints.flags = 2; // MWM_HINTS_DECORATIONS;
motifWmHints.decorations = 0; motifWmHints.decorations = 0;
XChangeProperty( XDISPLAY, m_wnd, hints_atom, hints_atom, 32, XChangeProperty( XDISPLAY, m_wnd, hints_atom, hints_atom, 32,
PropModeReplace, (unsigned char *)&motifWmHints, PropModeReplace, (unsigned char *)&motifWmHints,
sizeof( motifWmHints ) / sizeof( long ) ); sizeof( motifWmHints ) / sizeof( uint32_t ) );
// Drag & drop // Drag & drop
if( m_dragDrop ) if( m_dragDrop )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment