updateStrut();
// this makes sure that these windows appear on all desktops
- if (_type == Type_Dock || _type == Type_Desktop)
+ if (/*_type == Type_Dock ||*/ _type == Type_Desktop)
_desktop = 0xffffffff;
// set the desktop hint, to make sure that it always exists, and to reflect
otk::Property::atoms.cardinal,
(long unsigned*)&_desktop)) {
#ifdef DEBUG
- printf("DEBUG: Window requested desktop: %d\n", _desktop);
+// printf("Window requested desktop: %ld\n", _desktop);
#endif
}
}
if (ur != _urgent) {
_urgent = ur;
+#ifdef DEBUG
+ printf("DEBUG: Urgent Hint for 0x%lx: %s\n",
+ (long)_window, _urgent ? "ON" : "OFF");
+#endif
// fire the urgent callback if we're mapped, otherwise, wait until after
// we're mapped
if (_urgent && frame)
_strut.left = data[0];
_strut.right = data[1];
_strut.top = data[2];
- _strut.bottom = data[3];
-
+ _strut.bottom = data[3];
+
openbox->screen(_screen)->updateStrut();
}
// these are in a carefully crafted order..
if (_iconic) {
- printf("MAP ICONIC\n");
_iconic = false;
setDesktop(ICONIC_DESKTOP);
}
void Client::fireUrgent()
{
- // call the python UrgentNotify callbacks
- EventData data(_screen, this, EventUrgentNotify, 0);
+ // call the python UrgentWindow callbacks
+ EventData data(_screen, this, EventAction::UrgentWindow, 0);
openbox->bindings()->fireEvent(&data);
}
{
if (ignore_unmaps) {
#ifdef DEBUG
- printf("Ignored UnmapNotify for 0x%lx (event 0x%lx)\n", e.window, e.event);
+// printf("Ignored UnmapNotify for 0x%lx (event 0x%lx)\n", e.window, e.event);
#endif // DEBUG
ignore_unmaps--;
return;