<commit_before>var x11 = require('x11')
var X

var Layout = require('./layout')
var u      = require('./utils')
var ease   = require('vec2-easing')

require('./xorg')(function (err, client, display) {
  if(err) throw err

  var rw = client.root, _prevFocus

  var layouts = [new Layout(rw)]

  var l = layouts[0]

  client.client.require('randr', function(Randr) {
    Randr.SelectInput(rw.id, Randr.NotifyMask.ScreenChange);
  });

  rw.on('RRScreenChangeNotify', function(ev, win) {
    console.log(ev);
    if(win.bounds)
      win.bounds.size.set(ev.width, ev.height)
    else
      win.resize(ev.width, ev.height)
    l.layout();
  });
<commit_msg>resize root window on screen resize<commit_after>var x11 = require('x11')
var X

var Layout = require('./layout')
var u      = require('./utils')
var ease   = require('vec2-easing')

require('./xorg')(function (err, client, display) {
  if(err) throw err

  var rw = client.root, _prevFocus

  var layouts = [new Layout(rw)]

  var l = layouts[0]

  client.client.require('randr', function(Randr) {
    Randr.SelectInput(rw.id, Randr.NotifyMask.ScreenChange);
  });

  rw.on('RRScreenChangeNotify', function(ev) {
    console.log(rw);
    rw.bounds.size.set(ev.width, ev.height)
    l.layout();
  });

{'fraction_non_alphanumeric': 0.1674641148325359, 'fraction_numerical': 0.009569377990430622, 'mean_word_length': 3.5636363636363635, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1803485', 'n_tokens_mistral': 461, 'n_tokens_neox': 438, 'n_words': 94}