74 lines
2.0 KiB
C
74 lines
2.0 KiB
C
/*
|
|
* Window Maker window manager
|
|
*
|
|
* Copyright (c) 1997-2003 Alfredo K. Kojima
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
#include "wconfig.h"
|
|
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "WindowMaker.h"
|
|
#include "window.h"
|
|
#include "GNUstep.h"
|
|
#include "properties.h"
|
|
|
|
|
|
int PropGetWMClass(Window window, char **wm_class, char **wm_instance)
|
|
{
|
|
return wm_backend->prop_get_wm_class((WNativeWindow)window,
|
|
wm_class, wm_instance);
|
|
}
|
|
|
|
void PropGetProtocols(Window window, WProtocols * prots)
|
|
{
|
|
wm_backend->prop_get_protocols((WNativeWindow)window, prots);
|
|
}
|
|
|
|
unsigned char *PropGetCheckProperty(Window window, Atom hint, Atom type, int format, int count, int *retCount)
|
|
{
|
|
return wm_backend->prop_get_check_property((WNativeWindow)window,
|
|
(unsigned long)hint, (unsigned long)type, format, count, retCount);
|
|
}
|
|
|
|
|
|
void PropSetWMakerProtocols(Window root)
|
|
{
|
|
wm_backend->prop_set_wmaker_protocols((WNativeWindow)root);
|
|
}
|
|
|
|
void PropSetIconTileHint(WScreen * scr, RImage * image)
|
|
{
|
|
wm_backend->prop_set_icon_tile(scr, image);
|
|
}
|
|
|
|
Window PropGetClientLeader(Window window)
|
|
{
|
|
return (Window)wm_backend->prop_get_client_leader((WNativeWindow)window);
|
|
}
|
|
|
|
int PropGetWindowState(Window window)
|
|
{
|
|
return wm_backend->prop_get_window_state((WNativeWindow)window);
|
|
}
|
|
|
|
void PropCleanUp(Window root)
|
|
{
|
|
wm_backend->prop_cleanup((WNativeWindow)root);
|
|
}
|