some notes to self

This commit is contained in:
Mikael Magnusson 2006-06-08 11:05:29 +00:00
parent 74695334c6
commit f80ab241f3
2 changed files with 8 additions and 2 deletions

View file

@ -295,6 +295,7 @@ void client_manage(Window window)
client_apply_startup_state(self); client_apply_startup_state(self);
/* get and set application level settings */ /* get and set application level settings */
/* XXX move that function here */
settings = (ObAppSetting *) get_client_settings(self); settings = (ObAppSetting *) get_client_settings(self);
if (settings) { if (settings) {
@ -361,10 +362,11 @@ void client_manage(Window window)
gint x = self->area.x, ox = x; gint x = self->area.x, ox = x;
gint y = self->area.y, oy = y; gint y = self->area.y, oy = y;
place_client(self, &x, &y);
if (settings) if (settings)
/* XXX put this in place.c */
place_window_from_settings(settings, self, &x, &y); place_window_from_settings(settings, self, &x, &y);
else
place_client(self, &x, &y);
/* make sure the window is visible. */ /* make sure the window is visible. */
client_find_onscreen(self, &x, &y, client_find_onscreen(self, &x, &y,

View file

@ -20,6 +20,9 @@
#include "screen.h" #include "screen.h"
#include "config.h" #include "config.h"
/* XXX put in client.c */
/* This should possibly do something more interesting than just match
* against WM_CLASS literally. */
ObAppSetting *get_client_settings(ObClient *client) ObAppSetting *get_client_settings(ObClient *client)
{ {
GSList *a = config_per_app_settings; GSList *a = config_per_app_settings;
@ -38,6 +41,7 @@ ObAppSetting *get_client_settings(ObClient *client)
return NULL; return NULL;
} }
/* XXX put in place.c */
void place_window_from_settings(ObAppSetting *setting, ObClient *client, gint *x, gint *y) void place_window_from_settings(ObAppSetting *setting, ObClient *client, gint *x, gint *y)
{ {
gint px, py, i; gint px, py, i;