ultimatepp/uppdev/Beep/main.cpp
cxl 3cd394812c Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-04 08:34:39 +00:00

25 lines
498 B
C++

#include <CtrlLib/CtrlLib.h>
void sBeepInformation()
{
if(fork()) return;
system("aplay /usr/share/sounds/info.wav");
abort();
}
GUI_APP_MAIN
{
TopWindow h;
h.SetRect(-100, -100, 10, 10);
h.Open();
Vector<int> nets = GetPropertyInts(Xroot, XAtom("_NET_FRAME_EXTENTS"));
DUMPC(nets);
nets = GetPropertyInts(Xroot, XAtom("_NET_WORKAREA"));
DUMPC(nets);
h.Close();
do {
DUMP(Ctrl::GetWorkArea());
// sBeepInformation();
}
while(PromptYesNo("Continue?"));
}