diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-17 20:16:32 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-17 20:16:32 +0000 |
| commit | 75b07a2bb3b98d581b39d3991cf1e9068452264a (patch) | |
| tree | 564d2659f98758759036f96f779d854092772bea /openbox/screen.c | |
| parent | 033bd73e7e80c13af0a7724f7f48eda0a7410e65 (diff) | |
all events are dispatched
Diffstat (limited to 'openbox/screen.c')
| -rw-r--r-- | openbox/screen.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/openbox/screen.c b/openbox/screen.c index 3c83baa4..f82275c0 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -5,6 +5,8 @@ #include "frame.h" #include "engine.h" #include "focus.h" +#include "dispatch.h" +#include "../render/render.h" #include <X11/Xlib.h> #ifdef HAVE_UNISTD_H @@ -233,6 +235,8 @@ void screen_set_num_desktops(guint num) /* may be some unnamed desktops that we need to fill in with names */ screen_update_desktop_names(); + dispatch_ob(Event_Ob_NumDesktops); + /* change our desktop if we're on one that no longer exists! */ if (screen_desktop >= screen_num_desktops) screen_set_desktop(num - 1); @@ -267,9 +271,7 @@ void screen_set_desktop(guint num) engine_frame_show(c->frame); } - /* force the callbacks to fire */ - if (focus_client == NULL) - focus_set_client(NULL); + dispatch_ob(Event_Ob_Desktop); } void screen_update_layout() @@ -392,18 +394,17 @@ void screen_show_desktop(gboolean show) show = show ? 1 : 0; /* make it boolean */ PROP_SET32(ob_root, net_showing_desktop, cardinal, show); + + dispatch_ob(Event_Ob_ShowDesktop); } void screen_install_colormap(Client *client, gboolean install) { if (client == NULL) { - /* XXX DONT USE THE DEFAULT SHIT HERE */ if (install) - XInstallColormap(ob_display, - DefaultColormap(ob_display, ob_screen)); + XInstallColormap(ob_display, render_colormap); else - XUninstallColormap(ob_display, - DefaultColormap(ob_display, ob_screen)); + XUninstallColormap(ob_display, render_colormap); } else { XWindowAttributes wa; if (XGetWindowAttributes(ob_display, client->window, &wa)) { |
