- _mask_list[2] = NumLockMask;
- _mask_list[3] = LockMask | NumLockMask;
- _mask_list[4] = ScrollLockMask;
- _mask_list[5] = ScrollLockMask | LockMask;
- _mask_list[6] = ScrollLockMask | NumLockMask;
- _mask_list[7] = ScrollLockMask | LockMask | NumLockMask;
+ _mask_list[2] = _num_lock_mask;
+ _mask_list[3] = LockMask | _num_lock_mask;
+ _mask_list[4] = _scroll_lock_mask;
+ _mask_list[5] = _scroll_lock_mask | LockMask;
+ _mask_list[6] = _scroll_lock_mask | _num_lock_mask;
+ _mask_list[7] = _scroll_lock_mask | LockMask | _num_lock_mask;
+
+ // Get information on all the screens which are available, and create their
+ // RenderControl
+ _screeninfo_list = new ScreenInfo*[ScreenCount(_display)];
+ _rendercontrol_list = new RenderControl*[ScreenCount(_display)];
+ for (int i = 0; i < ScreenCount(_display); ++i) {
+ _screeninfo_list[i] = new ScreenInfo(i);
+ _rendercontrol_list[i] = RenderControl::getRenderControl(i);
+ }
+}