windowmaker-wl/WINGs/wcolorpanel_wl.c

23 lines
607 B
C

/*
* wcolorpanel_wl.c — Wayland backend for Color Panel magnifying glass.
*
* Screen pixel capture is not available via standard Wayland protocols,
* so the magnifying glass feature is stubbed with a user-visible alert.
*/
#include "wconfig.h"
#include "WINGsP.h"
#include "wcolorpanelP.h"
void W_ColorPanelMagnify(WMWidget *w, void *data)
{
struct W_ColorPanel *panel = (struct W_ColorPanel *)data;
(void)w;
WMRunAlertPanel(WMWidgetScreen(panel->win), panel->win,
_("Color Picker"),
_("Screen color picking is not available\n"
"on the Wayland backend."),
_("OK"), NULL, NULL);
}