mirror of
https://github.com/gryf/wmaker.git
synced 2026-04-27 03:11:26 +02:00
1f03c13f4d
This patch is improving the support for RandR. It uses version 1.3 released in March 2009. Most of the support is done in randr.c/randr.h It is built on top of the mature Xinerama structure but Xinerama lib is not required. Like for Xinerama, RandR is now auto enabled if the library is found at compiled time. RandR support can be used in 2 modes: A static mode (which is the default) is to define manually your setup with external tools like xrandr or arandr, like for example what Openbox is doing. A dynamic mode, which is triggered on hotplug events, like for example what GNOME is doing. If a new monitor is detected, it will select the best mode available and add it to the right on the existing monitors. The mode can be switched with a new option available in WindowMaker conf file (or via WPrefs expert panel): HotplugMonitor = NO;
37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
/* randr.h - RandR multi-monitor support
|
|
*
|
|
* Window Maker window manager
|
|
*
|
|
* Copyright (c) 2026 Window Maker Team
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#ifndef _WMRANDR_H_
|
|
#define _WMRANDR_H_
|
|
|
|
#ifdef USE_RANDR
|
|
|
|
#include <X11/extensions/Xrandr.h>
|
|
#include "screen.h"
|
|
|
|
void wRandRInit(WScreen *scr);
|
|
void wRandRTeardown(WScreen *scr);
|
|
void wRandRHandleNotify(WScreen *scr, XEvent *event);
|
|
|
|
#endif /* USE_RANDR */
|
|
|
|
#endif /* _WMRANDR_H_ */
|