Skip to content
Snippets Groups Projects
Commit f4b96414 authored by David Hedbor's avatar David Hedbor
Browse files

Added Bell command to be able to beep.

Rev: lib/modules/Protocols.pmod/X.pmod/Requests.pmod:1.20
Rev: lib/modules/Protocols.pmod/X.pmod/Xlib.pmod:1.23
parent 75b92d11
No related branches found
No related tags found
No related merge requests found
......@@ -741,6 +741,15 @@ class CreateColormap
}
}
class Bell {
inherit request;
constant reqType = 104;
int volume;
string to_string() { return build_request("", volume); }
}
class AllocColor
{
inherit request;
......
......@@ -946,4 +946,16 @@ class Display
send_request(req);
return Types.Cursor(this_object(), req->cid);
}
object Bell_req(int volume)
{
object req=Requests.Bell();
req->volume=volume;
return req;
}
void Bell(int volume)
{
send_request(Bell_req(volume));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment