Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void VideoNowPlayingWindow::setDNDAtom(bool dnd)
- {
- quint32 enable;
- if (dnd)
- enable = 1;
- else
- enable = 0;
- Atom winDNDAtom = XInternAtom(QX11Info::display(), "_HILDON_DO_NOT_DISTURB", false);
- XChangeProperty(QX11Info::display(), winId(), winDNDAtom, XA_INTEGER, 32, PropModeReplace, (uchar*) &enable, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment