Skip to content

Commit

Permalink
UPDATE_FVWM_SCREEN: remove win_count functionality
Browse files Browse the repository at this point in the history
In previous iterations of tracking which screen a given window was on,
or moved to, the assigned struct monitor would maintain a count of the
number of its windows.

This was meant to provide functionality which is not going to be used
now, so this can be removed.

Fixes #70
  • Loading branch information
ThomasAdam committed May 9, 2020
1 parent 24b2b46 commit 59c84cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
14 changes: 2 additions & 12 deletions fvwm/screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -475,18 +475,8 @@ typedef struct ScreenInfo
struct monitor *mnew; \
get_unshaded_geometry((fw), &g); \
mnew = FindScreenOfXY((fw)->g.frame.x, (fw)->g.frame.y); \
if (mnew == NULL) { \
fprintf(stderr, "CRAP - WHICH MONITOR?\n"); \
mnew = monitor_get_current(); \
} \
if (mnew != NULL) { \
if ((fw) && (fw)->m) { \
(fw)->m->win_count--; \
} \
(fw)->m_prev = (fw)->m; \
(fw)->m = mnew; \
(fw)->m->win_count++; \
} \
(fw)->m_prev = (fw)->m; \
(fw)->m = mnew; \
} while(0)

/* A macro to to simplify he "ewmh desktop code" */
Expand Down
1 change: 0 additions & 1 deletion libs/FScreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ struct screen_info *screen_info_by_name(const char *);

struct monitor {
struct screen_info *si;
int win_count;
int flags;

/* info for some desktops; the first entries should be generic info
Expand Down

0 comments on commit 59c84cb

Please sign in to comment.