wmadaptor.cxx (86e1cf34) wmadaptor.cxx (bccc1572)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 2508 unchanged lines hidden (view full) ---

2517}
2518
2519/*
2520* WMAdaptor::setClientMachine
2521*/
2522void WMAdaptor::setClientMachine( X11SalFrame* i_pFrame ) const
2523{
2524 rtl::OString aWmClient( rtl::OUStringToOString( GetX11SalData()->GetLocalHostName(), RTL_TEXTENCODING_ASCII_US ) );
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 2508 unchanged lines hidden (view full) ---

2517}
2518
2519/*
2520* WMAdaptor::setClientMachine
2521*/
2522void WMAdaptor::setClientMachine( X11SalFrame* i_pFrame ) const
2523{
2524 rtl::OString aWmClient( rtl::OUStringToOString( GetX11SalData()->GetLocalHostName(), RTL_TEXTENCODING_ASCII_US ) );
2525 XTextProperty aClientProp = { (unsigned char*)aWmClient.getStr(), XA_STRING, 8, aWmClient.getLength() };
2525 XTextProperty aClientProp = { (unsigned char*)aWmClient.getStr(), XA_STRING, 8, static_cast<unsigned long>(aWmClient.getLength()) };
2526 XSetWMClientMachine( m_pDisplay, i_pFrame->GetShellWindow(), &aClientProp );
2527}
2528
2529void WMAdaptor::answerPing( X11SalFrame* i_pFrame, XClientMessageEvent* i_pEvent ) const
2530{
2531 if( m_aWMAtoms[NET_WM_PING] &&
2532 i_pEvent->message_type == m_aWMAtoms[ WM_PROTOCOLS ] &&
2533 (Atom)i_pEvent->data.l[0] == m_aWMAtoms[ NET_WM_PING ] )

--- 77 unchanged lines hidden ---
2526 XSetWMClientMachine( m_pDisplay, i_pFrame->GetShellWindow(), &aClientProp );
2527}
2528
2529void WMAdaptor::answerPing( X11SalFrame* i_pFrame, XClientMessageEvent* i_pEvent ) const
2530{
2531 if( m_aWMAtoms[NET_WM_PING] &&
2532 i_pEvent->message_type == m_aWMAtoms[ WM_PROTOCOLS ] &&
2533 (Atom)i_pEvent->data.l[0] == m_aWMAtoms[ NET_WM_PING ] )

--- 77 unchanged lines hidden ---