mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 22:52:34 +01:00
wmaker: make the '--replace' de-activable at compile time
As it is really unlikely that in normal use case someone would need this feature, it is now conditional code, which is not enabled by default; the configure scripts now propose a '--enable-wmreplace' option to enable the corresponding code, as people making package for distributions may want to enable the feature to provide users the ability to give a try of all the window managers. Suggested-by: Carlos R. Mafra <crmafra@gmail.com> Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
28b0169147
commit
ea2b5f0641
@@ -1894,6 +1894,7 @@ static void handleVisibilityNotify(XEvent * event)
|
||||
|
||||
static void handle_selection_clear(XSelectionClearEvent *event)
|
||||
{
|
||||
#ifdef USE_ICCCM_WMREPLACE
|
||||
WScreen *scr = wScreenForWindow(event->window);
|
||||
|
||||
if (!scr)
|
||||
@@ -1904,4 +1905,11 @@ static void handle_selection_clear(XSelectionClearEvent *event)
|
||||
|
||||
wmessage(_("another window manager is replacing us!"));
|
||||
Shutdown(WSExitMode);
|
||||
#else
|
||||
/*
|
||||
* If the support for ICCCM window manager replacement was not enabled, we should not receive
|
||||
* this kind of event, so we simply do nothing.
|
||||
*/
|
||||
(void) event;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user