The following shows the diffstat and patchsets between 9c7a3e9..1031ad8^ ---------------------------------------------------------------- commit 1031ad8df9e81e7eceb61bc796a1ed8547ebb8c5 Author: Thomas Adam <tho...@fvwm.org> Date: Sat Nov 1 19:46:29 2014 +0000
TODO: Add item about monitor API --- TODO | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TODO b/TODO index ab5506d..2b818bd 100644 --- a/TODO +++ b/TODO @@ -89,6 +89,8 @@ Here's a very brief list of things on my immediate radar. -- Thomas Adam functionality. * Modules: + - monitor API in libs/FScreen.c to be flattened to use an enum to look for + monitor-specific information instead, rather than lots of small functions? - The module interface (FVWM <-> Module) is a mess; consider DBUS? Or imsg? - Use libevent to replace the hand-rolled (and often broken) select/poll commit 34704fd0b8bbf462e286cc5da6af7480ab017ddd Author: Thomas Adam <tho...@fvwm.org> Date: Sun Sep 28 18:25:23 2014 +0100 Ident: Print monitor name selected window is on When using Ident to show information about a window, also print out the name of the monitor. --- modules/MvwmIdent/MvwmIdent.c | 5 +++++ modules/MvwmIdent/MvwmIdent.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/modules/MvwmIdent/MvwmIdent.c b/modules/MvwmIdent/MvwmIdent.c index f781c49..93839d3 100644 --- a/modules/MvwmIdent/MvwmIdent.c +++ b/modules/MvwmIdent/MvwmIdent.c @@ -387,6 +387,10 @@ void list_configure(unsigned long *body) { module->window = cfgpacket->frame; target.id = cfgpacket->w; + target.monitor_id = cfgpacket->monitor_id; + free(target.monitor); + target.monitor = mvwm_strdup(monitor_by_number( + (int)target.monitor_id)->name); target.frame = cfgpacket->frame; target.frame_x = cfgpacket->frame_x; target.frame_y = cfgpacket->frame_y; @@ -1134,6 +1138,7 @@ void MakeList(void) AddToList("Class:", target.class); AddToList("Resource:", target.res); AddToList("Window ID:", id); + AddToList("Monitor:", target.monitor); AddToList("Desk:", desktop); AddToList("Layer:", layer); AddToList("Width:", swidth); diff --git a/modules/MvwmIdent/MvwmIdent.h b/modules/MvwmIdent/MvwmIdent.h index e8cdf0c..a4c0d23 100644 --- a/modules/MvwmIdent/MvwmIdent.h +++ b/modules/MvwmIdent/MvwmIdent.h @@ -9,8 +9,10 @@ struct target_struct char class[256]; char name[256]; char icon_name[256]; + char *monitor; unsigned long id; unsigned long frame; + long monitor_id; long frame_x; long frame_y; long frame_w; ---------------------------------------------------------------- Diffstat: ---------------------------------------------------------------- modules/MvwmIdent/MvwmIdent.h | 1 + 1 file changed, 1 insertion(+) ----------------------------------------------------------------